code: def pack_conda_main(conda_name, tmp_path):
      import subprocess
      import os
  
      pack_env = os.environ.copy()
      if "PYTHONHOME" in pack_env:
          pack_env.pop("PYTHONHOME")
      pack_cmd = "conda pack --format tar.gz --n-threads 8 -f -n {} -o {}".format(
          conda_name, tmp_path
      )
      pro = subprocess.Popen(pack_cmd, shell=True, env=pack_env)
      if pro.wait() != 0:
          raise RuntimeError(
              f"conda pack failed! Error executing command: {pack_cmd} "
          )
  
file_path: analytics-zoo/pyzoo/zoo/util/utils.py
imports: import glob
  from zoo.common import Sample
  import numpy
  from pyspark.ml.linalg import DenseVector, SparseVector, VectorUDT
label_desc: Use image node_id 5 for calling a global function with example usage: pack_conda_main(conda_name, tmp_path) without return types