def get_instances(cls) -> Generator[InstanceRefMixin]:
        """Get all instances of the class."""
        for inst_ref in cls._instance_refs[cls]:
            inst = inst_ref()
            if inst is not None:
                yield inst
Get all instances of the class.
src/core/trulens/core/utils/python.py