code: def create_collection(self, name, metadata):
          
  
          payload = {
                      'collection_metadata': metadata,
                      'name': name
                     }
  
          response = self.api_request('/catalog', method='POST', data=json.dumps(payload))
  
          return self.__check_success(response)
docs: Create a new collection with the given name
          and attach the metadata.
  
          :param name: the collection name, suitable for use in a URL (no spaces)
          :type name: String
          :param metadata: a dictionary of metadata values to associate with the new collection
          :type metadata: Dict
  
          :rtype: String
          :returns: a message confirming creation of the collection
  
          :raises: APIError if the request was not successful