in flowtorch/utils.py [0:0]
def isderivedclass(cls: type, base_cls: type) -> bool:
# NOTE issubclass won't always do what we want here if base_cls is imported
# inside the module of cls. I.e. issubclass returns False if cls inherits
# from a base_cls with a different instance.
return inspect.isclass(cls) and issubclass_byname(cls, base_cls)