def METHOD_NAME(create_files=True):
    """
    Helper function to set up temporary directories and files used for
    testing the clean_old_jobs function.
    This emulates salt.utils.jid.jid_dir() by creating this structure:
    RUNTIME_VARS.TMP_JID_DIR dir/
        random dir from tempfile.mkdtemp/
        'jid' directory/
            'jid' file
    Returns a temp_dir name and a jid_file_path. If create_files is False,
    the jid_file_path will be None.
    """
    # First, create the /tmp/salt_test_job_cache/jobs/ directory to hold jid dirs
    tmp_jid_dir.mkdir(parents=True, exist_ok=True)
    # Then create a JID temp file in "/tmp/salt_test_job_cache/"
    temp_dir = tmp_jid_dir / "tmp_dir"
    temp_dir.mkdir(parents=True, exist_ok=True)
    jid_file_path = None
    if create_files:
        dir_name = temp_dir / "jid"
        dir_name.mkdir(parents=True, exist_ok=True)
        jid_file_path = dir_name / "jid"
        jid_file_path.write_text("this is a jid file")
        jid_file_path = str(jid_file_path)
    return str(temp_dir), jid_file_path