docstr: Used to enable caching of a instantiated type after the configuration has settled
docstr_tok: ["Used","to","enable","caching","of","a","instantiated","type","after","the","configuration","has","settled"]
code: def instantiate(self, t: type) -> Any:
      """
      Used to enable caching of a instantiated type after the configuration has settled
      """
      # We cannot use set default as that would construct it again, and throw away the result
      res = self._inst.get(t)
      if res is not None:
          return res
      ret = t(self)
      self._inst[t] = ret
      return ret
  
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 5 for calling the Config obj's underlying member method code with example usage: obj.instantiate(t) and returns: ret, res