code: def match(obj, matchers=TYPES):
      
      buf = get_bytes(obj)
  
      for matcher in matchers:
          if matcher.match(buf):
              return matcher
  
      return None
docs: Matches the given input againts the available
      file type matchers.
  
      Args:
          obj: path to file, bytes or bytearray.
  
      Returns:
          Type instance if type matches. Otherwise None.
  
      Raises:
          TypeError: if obj is not a supported type.