def is_dummy(obj: Any) -> bool:
    """Check if the given object is an instance of `Dummy`.

    This is necessary as `isisintance` and `issubclass` checks might fail if the
    ones defined in `Dummy` get used; they always return `False` by design.
    """

    return obj.__class__.__name__ == "Dummy" and obj.__module__ in [
        "trulens.core.utils.imports",
        "trulens_eval.utils.imports",
    ]
Check if the given object is an instance of `Dummy`.

    This is necessary as `isisintance` and `issubclass` checks might fail if the
    ones defined in `Dummy` get used; they always return `False` by design.
    
src/core/trulens/core/utils/imports.py