code: def decode(obj, content_type):
      # type: (np.array or Iterable or int or float, str) -> np.array
      
      try:
          decoder = _decoders_map[content_type]
          return decoder(obj)
      except KeyError:
          raise _errors.UnsupportedFormatError(content_type)
docs: Decode an object ton a one of the default content types to a numpy array.
  
      Args:
          obj (object): to be decoded.
          content_type (str): content type to be used.
  
      Returns:
          np.array: decoded object.