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 has_attribute(self, attr_name):
      try:
          self.__getattr__(attr_name)
      except AttributeError:
          return False
      return True
  
imports: import functools
  from typing import Callable, Dict, Type, Union
  from transformers import PretrainedConfig
label_desc: Use image node_id 4 for calling the NormalizedConfig obj's underlying member method code with example usage: obj.has_attribute(attr_name) and returns: True, False