code: def install_miniconda(dry_run):
      """
      Installs miniconda, a slimmer anaconda installation to build conda packages
      """
  
      # Check if conda binary already exists
      exit_code = os.system(f"conda --version")
      if exit_code == 0:
          print(
              f"'conda' already present on the system. Proceeding without a fresh minconda installation."
          )
          return
      if os.name == "nt":
          print(
              "Identified as Windows system. Please install miniconda using this URL: https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe"
          )
          return
  
      try_and_handle(f"rm -rf $HOME/miniconda", dry_run)
      try_and_handle(
          f"wget {MINICONDA_DOWNLOAD_URL} -O ~/miniconda.sh", dry_run
      )
  
      try_and_handle(
          f"bash ~/miniconda.sh -f -b -p $HOME/miniconda", dry_run
      )
      try_and_handle(
          f"echo 'export PATH=$HOME/miniconda/bin:$PATH' >> ~/.bashrc",
          dry_run,
      )
      try_and_handle(
          f"ln -s $HOME/miniconda/bin/activate $HOME/miniconda/condabin/activate",
          dry_run,
      )
      try_and_handle(
          f"ln -s $HOME/miniconda/bin/deactivate $HOME/miniconda/condabin/deactivate",
          dry_run,
      )
  
      try_and_handle(f"{CONDA_BINARY} init", dry_run)
  
file_path: serve/binaries/conda/build_packages.py
imports: import argparse
  import os
  from datetime import date
  from ts_scripts.utils import try_and_handle
label_desc: Use image node_id 3 for calling a global function with example usage: install_miniconda(dry_run) without return types