code: def run_in_process(code, *args):
      
      if args:
          code %= args
      try:
          out = subprocess.check_output([sys.executable, '-c', code])
      except subprocess.CalledProcessError as exc:
          print(exc.cmd[-1], file=sys.stderr)
          raise
      if out:
          return eval(out, {}, {})
docs: Run in an external process the given Python code and return the
      output as a Python object. If there are arguments, then code is
      taken as a template and traditional string interpolation is performed.
  
      :param code: string or template describing Python code
      :param args: arguments to be used for interpolation
      :returns: the output of the process, as a Python object