code: def _priority(s):
      
      if type(s) in (list, tuple, set, frozenset):
          return ITERABLE
      if type(s) is dict:
          return DICT
      if issubclass(type(s), type):
          return TYPE
      if hasattr(s, "validate"):
          return VALIDATOR
      if callable(s):
          return CALLABLE
      else:
          return COMPARABLE
docs: Return priority for a given object.