code: def _do_test_commandline(self, cmdline, expected):
      cmd = '%s -c "import sys; print(sys.argv)" %s'
      cmd = cmd % (python, cmdline)
      with os.popen(cmd) as p:
          data = p.read()
      got = eval(data)[1:]  # strip off argv[0]
      self.assertEqual(got, expected)
  
file_path: cpython/Lib/test/test_popen.py
imports: import unittest
  from test import support
  import os, sys
label_desc: Use image node_id 1 for calling the PopenTest obj's underlying member method code with example usage: obj._do_test_commandline(cmdline, expected) without return types