code: def run_cmd(cmd):
      process = subprocess.Popen(
          cmd,
          stdout=subprocess.PIPE,
          stderr=subprocess.STDOUT,
          universal_newlines=True,
      )
      output, unused_err = process.communicate()
      retcode = process.poll()
      return RunResults(retcode, output)
  
imports: import csv
  import os
  import shutil
  import subprocess
  import tempfile
  import unittest
  import matplotlib
  from six.moves import xrange
  from pyalgotrade import dataseries
label_desc: Use image node_id 1 for calling a global function with example usage: run_cmd(cmd) and returns: RunResults