code: def instances(cls):
          
          l = [i for i in cls.allinstances() if isinstance(i, cls)]
          return l
docs: Return all instances of this class and subclasses
  
          :returns: all instances of the current class and subclasses
          :rtype: list
          :raises: None