code: def _check_exists(self, conf):
      from dvc.config import ConfigError
  
      if self.args.name not in conf["remote"]:
          raise ConfigError(f"remote '{self.args.name}' doesn't exist.")
  
imports: from dvc.cli import formatter
  from dvc.cli.utils import append_doc_link
  from dvc.commands.config import CmdConfig
  from dvc.ui import ui
  from dvc.utils import format_link
label_desc: Use image node_id 2 for calling the CmdRemote obj's underlying member method code with example usage: obj._check_exists(conf) without return types