code: def register(self, metadata):
          
          self.check_credentials()
          metadata.validate()
          d = metadata.todict()
          d[':action'] = 'verify'
          request = self.encode_request(d.items(), [])
          response = self.send_request(request)
          d[':action'] = 'submit'
          request = self.encode_request(d.items(), [])
          return self.send_request(request)
docs: Register a distribution on PyPI, using the provided metadata.
  
          :param metadata: A :class:`Metadata` instance defining at least a name
                           and version number for the distribution to be
                           registered.
          :return: The HTTP response received from PyPI upon submission of the
                  request.