code: def instance_of(self, kls: Any) -> bool:
          
          if not kls:
              raise ValueError
          return isinstance(self, kls)
docs: Return true if the current object is an instance of passed type.
  
          # Arguments
              kls: The class.
  
          # Returns:
              bool:
                * Return true if the current object is an instance of passed type.
                * False else.