code: def test_writing_in_place(self):
      infile = self._create_infile()
      rc, out, err = assert_python_ok("-m", "json.tool", infile, infile)
      with open(infile, "r", encoding="utf-8") as fp:
          self.assertEqual(fp.read(), self.expect)
      self.assertEqual(rc, 0)
      self.assertEqual(out, b"")
      self.assertEqual(err, b"")
  
imports: import errno
  import os
  import sys
  import textwrap
  import unittest
  import subprocess
  from test import support
  from test.support import os_helper
  from test.support.script_helper import assert_python_ok
label_desc: Use image node_id 6 for calling the TestTool obj's underlying member method code with example usage: obj.test_writing_in_place() without return types