code: def __get_bin(self, branch, osys, platform):
      dict_prefix = {"macos": "lib", "linux": "lib", "windows": ""}
      dict_extension = {"macos": "so", "linux": "so", "windows": "dll"}
      dict_os = {"macos": "macos", "linux": "linux", "windows": "win"}
  
      disk_client = yandex_disk(self.__token)
  
      remote_path_builds = "/%s/%s/%s" % (branch, osys, platform)
      builds = disk_client.folder_content(remote_path_builds)
  
      if len(builds) == 0:
          print(
              "WARNING: No builds for system '%s' on platform '%s' (branch '%s')."
              % (osys, platform, branch)
          )
          return
  
      sorted_builds = sorted(builds)
      latest_build = sorted_builds[-1]
  
      remote_path_binary = "%s/%s/%spyclustering.%s" % (
          remote_path_builds,
          latest_build,
          dict_prefix[osys],
          dict_extension[osys],
      )
  
      script_path = os.path.dirname(os.path.realpath(__file__))
      local_path_binary = (
          "%s/../../../pyclustering/core/%s/%s/%spyclustering.%s"
          % (
              script_path,
              platform,
              dict_os[osys],
              dict_prefix[osys],
              dict_extension[osys],
          )
      )
      local_path_binary = os.path.realpath(local_path_binary)
  
      self.__download(remote_path_binary, local_path_binary)
      print(
          "Latest build for '%s' '%s' on branch '%s' is '%s'"
          % (osys, platform, branch, builds[-1])
      )
  
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 7 for calling the task_handler obj's underlying member method code with example usage: obj.__get_bin(branch, osys, platform) without return types