def METHOD_NAME(temp_dir):
    random_str = "".join(random.choices(string.ascii_uppercase + string.digits, k=20))
    dir_path = os.path.join(temp_dir.name, "cache_" + random_str)
    os.mkdir(dir_path)
    return {"exists": True, "path": dir_path}