def METHOD_NAME(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