code: def merge(self, dct=None, **kwargs):
          
          if dct is None:
              dct = {}
          if kwargs:
              dct.update(**kwargs)
  
          for key, value in dct.items():
              if all((
                      isinstance(value, dict),
                      isinstance(self.get(key), Configuration),
                      getattr(self.get(key), "__merge__", True),
              )):
                  # recursively merge
                  self[key].merge(value)
              elif isinstance(value, list) and isinstance(self.get(key), list):
                  # append
                  self[key] += value
              else:
                  # set the new value
                  self[key] = value
docs: Recursively merge a dictionary or kwargs into the current dict.