code: def _parse_named(conf):
      result: Dict[str, Dict] = {"remote": {}, "machine": {}, "db": {}}
  
      for section, val in conf.items():
          match = re_find(
              r'^\s*(remote|machine|db)\s*"(.*)"\s*$', section
          )
          if match:
              key, name = match
              result[key][name] = val
          else:
              result[section] = val
  
      return result
  
imports: import os
  import re
  from contextlib import contextmanager
  from functools import partial
  from typing import TYPE_CHECKING, Dict, Optional
  from funcy import compact, memoize, re_find
  from dvc.exceptions import DvcException, NotDvcRepoError
  from dvc.log import logger
  from .utils.objects import cached_property
label_desc: Use image node_id 3 for calling a global function with example usage: _parse_named(conf) and returns: result