def is_lazy(obj):
    """Check if the given object is lazy.

    An object is considered lazy if it is a generator or an awaitable.
    """

    return (
        inspect.isawaitable(obj)
        or inspect.isgenerator(obj)
        or inspect.isasyncgen(obj)
    )
Check if the given object is lazy.

    An object is considered lazy if it is a generator or an awaitable.
    
src/core/trulens/core/utils/python.py