code: def find_dvc_dir(cls, root=None, fs=None) -> str:
      from dvc.fs import localfs
  
      fs = fs or localfs
      root_dir = cls.find_root(root, fs=fs)
      return fs.join(root_dir, cls.DVC_DIR)
  
imports: import os
  from collections import defaultdict
  from contextlib import contextmanager
  from functools import wraps
  from typing import TYPE_CHECKING, Callable, ContextManager, Iterable, Optional, Tuple, Union
  from dvc.exceptions import DvcException, NotDvcRepoError, OutputNotFoundError, RevCollectionError
  from dvc.ignore import DvcIgnoreFilter
  from dvc.log import logger
  from dvc.utils.objects import cached_property
label_desc: Use image node_id 22 for calling the Repo obj's underlying member method code with example usage: obj.find_dvc_dir(cls, root, fs) and returns: fs