code: def analyze(self, handle, filename):
          
          # ensure the handle is at offset 0.
          handle.seek(0)
  
          try:
              return self.jbx.submit_sample(handle)['webids'][0]
          except (jbxapi.JoeException, KeyError, IndexError) as e:
              raise sandboxapi.SandboxError("error in analyze: {e}".format(e=e))
docs: Submit a file for analysis.
  
          :type  handle:   File handle
          :param handle:   Handle to file to upload for analysis.
          :type  filename: str
          :param filename: File name.
  
          :rtype:  str
          :return: Task ID as a string