code: def get_conda_packages(run_lambda):
      if get_platform() == "win32":
          grep_cmd = r'findstr /R "torch soumith mkl magma"'
      else:
          grep_cmd = r'grep "torch\|soumith\|mkl\|magma"'
      conda = os.environ.get("CONDA_EXE", "conda")
      out = run_and_read_all(run_lambda, conda + " list | " + grep_cmd)
      if out is None:
          return out
      # Comment starting at beginning of line
      comment_regex = re.compile(r"^#.*\n")
      return re.sub(comment_regex, "", out)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import locale
  import re
  import subprocess
  import sys
  import os
  from collections import namedtuple
  import logging
label_desc: Use image node_id 4 for calling a global function with example usage: get_conda_packages(run_lambda) and returns: re, out