def get_method_name_from_frame(frame) -> str:
    """
    Retrieves the method name from the specified frame.

    :param frame: the frame to check
    :return: the method name from the specified frame
    """
    return frame.f_code.co_name