code: def getnm(nm_cmd=["nm", "-Cs", "python%s.lib" % py_ver]):
      """Returns the output of nm_cmd via a pipe.
  
      nm_output = getnam(nm_cmd = 'nm -Cs py_lib')"""
      f = subprocess.Popen(
          nm_cmd,
          shell=True,
          stdout=subprocess.PIPE,
          universal_newlines=True,
      )
      nm_output = f.stdout.read()
      f.stdout.close()
      return nm_output
  
imports: from __future__ import division, absolute_import, print_function
  import re
  import sys
  import subprocess
label_desc: Use image node_id 2 for calling a global function with example usage: getnm(nm_cmd) and returns: nm_output