code: def download(self, path):
          
          service_get_resp = requests.get(self.location, cookies={"session": self.session})
          payload = service_get_resp.json()
          self._state = payload["status"]
  
          if self._state != "processed":
              raise errors.ResourceError("slice resource status is: {}".format(self._state))
          else:
              download_get_resp = requests.get(payload["content"])
              with open(path, "wb") as model_file:
                  model_file.write(download_get_resp.content)
docs: downloads a model resource to the path