code: def test_stdin_stdout(self):
      proc = subprocess.Popen(
          (sys.executable, "-m", "json.tool"),
          stdin=subprocess.PIPE,
          stdout=subprocess.PIPE,
      )
      out, err = proc.communicate(self.data.encode())
      self.assertEqual(
          out.splitlines(), self.expect.encode().splitlines()
      )
      self.assertEqual(err, None)
  
file_path: catboost/contrib/tools/python/src/Lib/json/tests/test_tool.py
imports: import os
  import sys
  import textwrap
  import unittest
  import subprocess
  from test import test_support
  from test.script_helper import assert_python_ok
label_desc: Use image node_id 1 for calling the TestTool obj's underlying member method code with example usage: obj.test_stdin_stdout() without return types