code: def add_formats(self, formats):
          
          if not isinstance(formats, list):
              raise TypeError("formats can only be an instance of type list")
          for a in formats[:10]:
              if not isinstance(a, basestring):
                  raise TypeError(
                          "array can only contain objects of type basestring")
          self._call("addFormats",
                       in_p=[formats])
docs: Adds MIME / Content-type formats to the supported formats.
  
          in formats of type str
              Collection of formats to add.