def extract_command_name(line: str) -> str:
    """Read command name from text"""
    # Use the method call to break the string
    before_call = line.split("(")[0]
    # The remaining text should end with the method_name
    *_, method_name = before_call.split()

    return method_name