code: def check(self, item_id):
          
          response = self._request("/submissions/status/{file_id}".format(file_id=item_id))
  
          if response.status_code == 404:
              # unknown id
              return False
  
          try:
              status = response.json()['submissionStatus']
              if status == 'Done':
                  return True
  
          except ValueError as e:
              raise sandboxapi.SandboxError(e)
  
          return False
docs: Check if an analysis is complete.
  
          :type  item_id: str
          :param item_id: File ID to check.
  
          :rtype:  bool
          :return: Boolean indicating if a report is done or not.