code: def iiOfAny(instance, classes):
      
      if type(classes) not in [list, tuple]:
          classes = [classes]
  
      return any(
          type(instance).__name__ == cls.__name__
          for cls in classes
      )
docs: Returns true, if `instance` is instance of any (iiOfAny) of the `classes`.
  
      This function doesn't use :py:func:`isinstance` check, it just compares the
      `class` names.
  
      This can be generaly dangerous, but it is really useful when you are
      comparing class serialized in one module and deserialized in another.
  
      This causes, that module paths in class internals are different and
      :py:func:`isinstance` and :py:func:`type` comparsions thus fails.
  
      Use this function instead, if you wan't to check what type is your
      deserialized message.
  
      Args:
          instance (object): class instance you want to know the type
          classes (list): classes, or just one class you want to compare - func
                          automatically converts nonlist/nontuple parameters to
                          list
  
      Returns:
          bool: True if `instance` **can be** instance of any of the `classes`.