code: def _generate_configs_from_default(self, overrides=None):
          # type: (Dict[str, int]) -> Dict[str, int]
          
          config = DEFAULT_CONFIG.copy()
          if not overrides:
              overrides = {}
          for k, v in overrides.items():
              config[k] = v
          return config
docs: Generate configs by inheriting from defaults