def METHOD_NAME(obj):
    """ Returns a trait derived from its input.
    """
    from .trait_types import Any
    from .traits import Trait
    # special-case None
    if obj is None:
        return Any().as_ctrait()
    try:
        return as_ctrait(obj)
    except TypeError:
        return Trait(obj)