code: def status(self, upload, account=None, username=None):
          
          username = self._resolve_username(account, username)
          if isinstance(upload, dict):
              upload_id = upload['id']
          else:
              upload_id = upload
          uri = URITemplate(self.baseuri + '/{username}/{upload_id}').expand(
              username=username, upload_id=upload_id)
          resp = self.session.get(uri)
          self.handle_http_error(resp)
          return resp
docs: Check status of upload
  
          Parameters
          ----------
          upload: str
              The id of the upload or a dict with key 'id'.
          username : str
              Account username, defaults to the service's username.
          account : str, **deprecated**
              Alias for username. Will be removed in version 1.0.
  
          Returns
          -------
          requests.Response