class_docstr: Registry is like a normal dict, but with an optional parent dict.
  
  Items are considered to exist in the registry if they are added to either the registry itself, or its parent.
class_docstr_tok: ["Registry","is","like","a","normal","dict",",","but","with","an","optional","parent","dict",".","Items","are","considered","to","exist","in","the","registry","if","they","are","added","to","either","the","registry","itself",",","or","its","parent","."]
code: def __init__(self, source=None):
      init_data = None
      parent = {}
      if isinstance(source, Registry):
          parent = source
      else:
          init_data = source
  
      self.parent = parent
      super().__init__(init_data)
  
file_path: ludwig/ludwig/utils/registry.py
imports: from collections import UserDict
  from typing import Generic, TypeVar
label_desc: Use image node_id 1 to create a new Registry object from inherited base classes: UserDict, Generic with example: obj = Registry(source)