code: def get_resource(
      self, res_name: str, t: Optional[Type] = None
  ) -> Any:
      logging.debug(f"Loading resource {res_name} of type {t}")
  
      # FIXME: Actually returns obj of type `t`, but python is bad
      loader, name = split_resource_name(res_name)
      if t is None:
          return self(_fwd.registry.get_named(loader, ResourceLoader))(
              name
          )
      else:
          return self(
              _fwd.registry.get_named(loader, ResourceLoader[t])
          )(name)
  
imports: import datetime
  import os
  import pydoc
  from typing import Any, Callable, Dict, List, Optional, Type, Union
  import appdirs
  import yaml
  import logging
  from rich.logging import RichHandler
  from .None import _fwd
  from ._modules import PolymorphicChecker, ResourceLoader, Searcher
label_desc: Use image node_id 14 for calling the Config obj's underlying member method code with example usage: obj.get_resource(res_name, t) and returns: self, self