code: def __upload(self, from_path, to_path):
      if not os.path.isfile(from_path):
          raise FileExistsError(
              "ERROR: File '%s' on local machine does not exist."
              % from_path
          )
  
      disk_client = yandex_disk(self.__token)
      if disk_client.file_exist(to_path):
          print(
              "WARNING: File '%s' already exists on the cloud and it will be overwritten."
              % to_path
          )
          if not disk_client.delete(to_path):
              raise RuntimeError(
                  "ERROR: Impossible to remove file '%s'." % to_path
              )
  
      if disk_client.upload(from_path, to_path) is True:
          print(
              "INFO: File '%s' is successfully uploaded to '%s'."
              % (from_path, to_path)
          )
  
file_path: pyclustering/ci/cloud/cloud/task_handler.py
imports: import os
  import zipfile
  from cloud.yandex_disk import yandex_disk
label_desc: Use image node_id 3 for calling the task_handler obj's underlying member method code with example usage: obj.__upload(from_path, to_path) without return types