class_docstr: Handles the normalization of [`PretrainedConfig`] attribute names, allowing to access attributes in a general way.
  
  Attributes:
      config ([`PretrainedConfig`]):
          The config to normalize.
class_docstr_tok: ["Handles","the","normalization","of","[","`","PretrainedConfig","`","]","attribute","names",",","allowing","to","access","attributes","in","a","general","way",".","Attributes",":","config","(","[","`","PretrainedConfig","`","]",")",":","The","config","to","normalize","."]
code: def __init__(
      self,
      config: Union[PretrainedConfig, Dict],
      allow_new: bool = False,
      **kwargs,
  ):
      self.config = config
      for key, value in kwargs.items():
          if allow_new or hasattr(self, key.upper()):
              setattr(self, key.upper(), value)
          else:
              raise AttributeError(
                  f"{self.__class__} has not attribute {key}. Set allow_new=True to add a new attribute."
              )
  
imports: import functools
  from typing import Callable, Dict, Type, Union
  from transformers import PretrainedConfig
label_desc: Use image node_id 1 to create a new NormalizedConfig object  with example: obj = NormalizedConfig(config, allow_new)