class_docstr: A Munch that returns a user-specified value for missing keys.
docstr: Construct a new DefaultMunch. Like collections.defaultdict, the
  first argument is the default value; subsequent arguments are the
  same as those for dict.
docstr_tok: ["Construct","a","new","DefaultMunch",".","Like","collections.defaultdict",",","the","first","argument","is","the","default","value",";","subsequent","arguments","are","the","same","as","those","for","dict","."]
code: def __init__(self, *args, **kwargs):
      """Construct a new DefaultMunch. Like collections.defaultdict, the
      first argument is the default value; subsequent arguments are the
      same as those for dict.
      """
      # Mimic collections.defaultdict constructor
      if args:
          default = args[0]
          args = args[1:]
      else:
          default = None
      super(DefaultMunch, self).__init__(*args, **kwargs)
      self.__default__ = default
  
imports: from collections.abc import Mapping
label_desc: Use image node_id 1 to create a new DefaultMunch object from inherited base classes: Munch with example: obj = DefaultMunch()