def find_first_non_return_key(some_dict):
    """Finds the first key in a dictionary that is not "return"."""
    for key, value in some_dict.items():
        if key != "return":
            return value
    return None
Finds the first key in a dictionary that is not "return".
gradio/cli/commands/components/_docs_utils.py