code: def _create_infile(self):
      infile = test_support.TESTFN
      with open(infile, "w") as fp:
          self.addCleanup(os.remove, infile)
          fp.write(self.data)
      return infile
  
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 2 for calling the TestTool obj's underlying member method code with example usage: obj._create_infile() and returns: infile