def base_class(self) -> Class:
        """
        Get the deepest base class in the same module as this class.
        """
        if self.bases is None:
            return self

        module_name = self.module.module_name

        for base in self.bases[::-1]:
            if base.module.module_name == module_name:
                return base

        return self

        Get the deepest base class in the same module as this class.
        
src/core/trulens/core/utils/pyschema.py