code: def run(self):
      install.run(self)
  
      import requests
      from pathlib import Path
      import sys
      import os
      import stat
      import shutil
  
      dest_dir = os.path.join(self.install_lib, "cortex", "binary")
  
      zip_file_path = os.path.join(dest_dir, "cli.zip")
      cli_file_path = os.path.join(dest_dir, "cli")
  
      if not os.path.exists(cli_file_path):
          platform = sys.platform
  
          # recommended way to check platform: https://docs.python.org/3/library/sys.html#sys.platform
          if sys.platform.startswith("darwin"):
              platform = "darwin"
          if sys.platform.startswith("linux"):
              platform = "linux"
  
          if platform != "darwin" and platform != "linux":
              raise Exception(
                  f"platform {platform} is not supported; cortex is only supported on mac and linux"
              )
  
          cortex_version = self.config_vars["dist_version"]
  
          if "dev" in cortex_version:
              cortex_version = "master"
  
          download_url = f"https://s3-us-west-2.amazonaws.com/get-cortex/{cortex_version}/cli/{platform}/cortex.zip"
  
          print("downloading cortex cli...")
          with requests.get(download_url, stream=True) as r:
              with open(zip_file_path, "wb") as f:
                  shutil.copyfileobj(r.raw, f)
  
          zip_dir = os.path.join(dest_dir, "cli_dir")
  
          print("unzipping cortex cli...")
          shutil.unpack_archive(zip_file_path, zip_dir)
          shutil.move(os.path.join(zip_dir, "cortex"), cli_file_path)
          shutil.rmtree(zip_dir)
          os.remove(zip_file_path)
  
          f = Path(cli_file_path)
          f.chmod(f.stat().st_mode | stat.S_IEXEC)
  
imports: import pathlib
  from setuptools import setup, find_packages
  from setuptools.command.install import install
label_desc: Use image node_id 1 for calling the InstallBinary obj's underlying member method code with example usage: obj.run() without return types