code: def archive_dir(env_dir):
      
      output_filename = env_dir + ".zip"
      log.info("Archiving conda environment: %s -> %s", env_dir, output_filename)
      subprocess.check_call(["zip", "-r", "-0", "-q", output_filename, env_dir])
      return output_filename
docs: Compresses the directory and writes to its parent
  
      Parameters
      ----------
      env_dir : str
  
      Returns
      -------
      str