class_docstr: Custom Dict class for class with dataclass, esp. for BaseOutput in diffusers
      
code: def __getattr__(self, key):
      if key in self.keys():
          return self.__getitem__(key)
      else:
          super().__getattr__(key)
  
imports: import torch
label_desc: Use image node_id 1 for calling the CustomDict obj's underlying member method code with example usage: obj.__getattr__(key) and returns: self