code: def download(self, remote_path, local_path):
      if os.path.isfile(local_path):
          print(
              "ERROR: Impossible to download file to path '%s' because file with such name already exists"
              % local_path
          )
          return False
  
      result, response_content = self.__send_request(
          "GET",
          yandex_disk.__HTTP_RESOURCES_DOWNLOAD,
          {"path": remote_path},
      )
      if result != 200:
          print(
              "ERROR: Impossible to obtain link to download file from '%s' (code: '%d', description: '%s')"
              % (remote_path, result, response_content)
          )
          return False
  
      json_content = json.loads(response_content)
      download_link = json_content["href"]
      status, content = self.__download_request(download_link)
  
      if status != 200:
          print(
              "ERROR: Impossible to download file using link '%s' (code: '%d')."
              % (download_link, status)
          )
          return False
  
      file_descriptor = open(local_path, "wb")
      file_descriptor.write(content)
      file_descriptor.close()
  
      return True
  
file_path: pyclustering/ci/cloud/cloud/yandex_disk.py
imports: import http.client
  import json
  import os.path
  import urllib.request
  from urllib.parse import urlparse
label_desc: Use image node_id 5 for calling the yandex_disk obj's underlying member method code with example usage: obj.download(remote_path, local_path) and returns: True, False, False, False