def METHOD_NAME(use_local_path: bool) -> pathlib.Path:
    if use_local_path:
        out_dir_temp = pathlib.Path(os.path.abspath("./tvmc_relative_path_test"))
        if os.path.isdir(out_dir_temp):
            shutil.rmtree(out_dir_temp)
        os.mkdir(out_dir_temp)
    else:
        out_dir_temp = tvm.contrib.utils.tempdir()
    return out_dir_temp