def METHOD_NAME(x: Any) -> str:
    """
    Gets the name of virtually any object.
    Args:
        x (Any): The object to get the name of.
    Returns:
        str: The name of the object.
    """
    try:
        return x.__name__
    except AttributeError:
        return repr(x) if hasattr(x, "__origin__") else x.__class__.__name__