code: def load_from_dict(dct=None, **kwargs):
      
      dct = dct or dict()
      dct.update(kwargs)
  
      def _load_from_dict(metadata):
          return dict(dct)
      return _load_from_dict
docs: Load configuration from a dictionary.