code: def __getattr__(self, key):
      try:
          item = self[key]
      except KeyError:
          raise AttributeError(key)
      if isinstance(item, dict):
          return DotDict(item)
      else:
          return item
  
file_path: arrow/dev/archery/archery/testing.py
imports: from contextlib import contextmanager
  import os
  from unittest import mock
  import re
label_desc: Use image node_id 1 for calling the DotDict obj's underlying member method code with example usage: obj.__getattr__(key) and returns: DotDict, item