code: def get_named(self, name: str, type_constraint: Type = None) -> Any:
      ret = self._names[name.lower()]
      if type_constraint and type_constraint not in ret[1]:
          raise TypeError(
              f"Type mismatch: wanted {type_constraint}, got {ret[1]}"
          )
      return ret[0]
  
file_path: Ciphey/ciphey/iface/_registry.py
imports: from typing import Any, Dict, List, Optional, Set, Tuple, Type, Union
  from .None import _fwd
  from ._modules import *
label_desc: Use image node_id 6 for calling the Registry obj's underlying member method code with example usage: obj.get_named(name, type_constraint) and returns: ret