code: def _reset(self):
      self.scm._reset()
      self.state.close()
      if "dvcfs" in self.__dict__:
          self.dvcfs.close()
      self.__dict__.pop("index", None)
      self.__dict__.pop("dvcignore", None)
      self.__dict__.pop("dvcfs", None)
      self.__dict__.pop("datafs", None)
      self.__dict__.pop("config", None)
  
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 36 for calling the Repo obj's underlying member method code with example usage: obj._reset() without return types