original_docstring: 
          downloads an item to local disk
  
          Inputs:
             itemID - unique id of item to download
             savePath - folder to save the file in
          
docstring: downloads an item to local disk
  Inputs:
  itemID - unique id of item to download
  savePath - folder to save the file in
docstring_tokens: downloads an item to local disk Inputs : itemID - unique id of item to download savePath - folder to save the file in
code: def download(self, itemID, savePath):
          """
          downloads an item to local disk
  
          Inputs:
             itemID - unique id of item to download
             savePath - folder to save the file in
          """
          if os.path.isdir(savePath) == False:
              os.makedirs(savePath)
          url = self._url + "/%s/download" % itemID
          params = {
          }
          if len(params.keys()):
              url =  url + "?%s" % urlencode(params)
          return self._get(url=url,
                           param_dict=params,
                           out_folder=savePath,
                           securityHandler=self._securityHandler,
                           proxy_url=self._proxy_url,
                           proxy_port=self._proxy_port)
code_tokens: def download ( self , itemID , savePath ) : if os . path . isdir ( savePath ) == False : os . makedirs ( savePath ) url = self . _url + "/%s/download" % itemID params = { } if len ( params . keys ( ) ) : url = url + "?%s" % urlencode ( params ) return self . _get ( url = url , param_dict = params , out_folder = savePath , securityHandler = self . _securityHandler , proxy_url = self . _proxy_url , proxy_port = self . _proxy_port )
short_docstring: downloads an item to local disk
  Inputs:
  itemID - unique id of item to download
  savePath - folder to save the file in
short_docstring_tokens: downloads an item to local disk Inputs : itemID - unique id of item to download savePath - folder to save the file in
comment: """
          downloads an item to local disk
  
          Inputs:
             itemID - unique id of item to download
             savePath - folder to save the file in
          """