def get_container_name(arg):
    """Gets a human readable name for a type."""
    if inspect.isclass(arg):
        return arg.__name__
    if isinstance(arg, types.GenericAlias):
        return arg.__origin__.__name__
    elif isinstance(arg, types.UnionType):
        return "Union"
    elif getattr(arg, "__origin__", None) is typing.Literal:
        return "Literal"
    else:
        return str(arg)
Gets a human readable name for a type.
gradio/cli/commands/components/_docs_utils.py