import inspect


def classname(cls):
    """Return the class name for the input class/object.

    Args:
        cls: A class or object.
    """
    if not inspect.isclass(cls):
        cls = type(cls)
    return cls.__name__