code: def _make_recording_file(prefix):
      """Make a temp file for recording calls to a mocked command"""
      global recording_dir
      if recording_dir is None:
          recording_dir = tempfile.mkdtemp()
      fd, p = tempfile.mkstemp(
          dir=recording_dir, prefix=prefix, suffix=".json"
      )
      os.close(fd)
      return p
  
file_path: catboost/contrib/python/testpath/py3/testpath/commands.py
imports: import contextlib
  import json
  import os
  import shutil
  import sys
  import tempfile
label_desc: Use image node_id 1 for calling a global function with example usage: _make_recording_file(prefix) and returns: p