code: def _name_type(value):
      import re
  
      match = re.match(NAME_REGEX, value)
      if not match:
          raise argparse.ArgumentTypeError(
              "name argument should look like remote.name.option or "
              "db.name.option or section.option"
          )
      top = match.group("top")
      return (
          top.strip(".") if top else None,
          match.group("section").lower(),
          match.group("option").lower(),
      )
  
imports: import argparse
  import os
  from funcy import set_in
  from dvc.cli import formatter
  from dvc.cli.command import CmdBaseNoRepo
  from dvc.cli.utils import append_doc_link
  from dvc.log import logger
  from dvc.ui import ui
label_desc: Use image node_id 1 for calling a global function with example usage: _name_type(value) and returns: unknown,  match,  match