code: def test_find_root(dvc):
      class Cmd(CmdBase):
          def run(self):
              pass
  
      class A:
          quiet = False
          verbose = True
          cd = os.path.pardir
  
      args = A()
      with pytest.raises(NotDvcRepoError):
          Cmd(args)
  
imports: import os
  import pytest
  from dvc.cli import DvcParserError, parse_args
  from dvc.cli.command import CmdBase
  from dvc.commands.add import CmdAdd
  from dvc.commands.checkout import CmdCheckout
  from dvc.commands.config import CmdConfig
  from dvc.commands.data_sync import CmdDataPull, CmdDataPush
  from dvc.commands.init import CmdInit
  from dvc.commands.remove import CmdRemove
  from dvc.commands.repro import CmdRepro
  from dvc.commands.status import CmdDataStatus
  from dvc.exceptions import NotDvcRepoError
label_desc: Use image node_id 11 for calling a global function with example usage: test_find_root(dvc) without return types