class_docstr: Temp directory experiment executor.
class_docstr_tok: ["Temp","directory","experiment","executor","."]
docstr: Initialize DVC cache.
docstr_tok: ["Initialize","DVC","cache","."]
code: def init_cache(
      self,
      repo: "Repo",
      rev: str,  # noqa: ARG002
      run_cache: bool = True,  # noqa: ARG002
  ):
      """Initialize DVC cache."""
      self._update_config(
          {"cache": {"dir": repo.cache.local_cache_dir}}
      )
  
imports: import os
  from contextlib import ExitStack
  from tempfile import mkdtemp
  from typing import TYPE_CHECKING, Optional, Union
  from configobj import ConfigObj
  from funcy import retry
  from shortuuid import uuid
  from dvc.lock import LockError
  from dvc.log import logger
  from dvc.repo.experiments.refs import EXEC_BASELINE, EXEC_BRANCH, EXEC_HEAD, EXEC_MERGE, EXEC_NAMESPACE, TEMP_NAMESPACE
  from dvc.repo.experiments.utils import EXEC_TMP_DIR, get_exp_rwlock
  from dvc.scm import SCM, Git
  from dvc.utils.fs import remove
  from dvc.utils.objects import cached_property
  from .base import BaseExecutor, TaskStatus
label_desc: Use image node_id 3 for calling the TempDirExecutor obj's underlying member method code with example usage: obj.init_cache(repo, rev, run_cache) without return types