code: def __getitem__(self, k):
      if isinstance(k, str) and "." in k:
          k = k.split(".")
      if isinstance(k, (list, tuple)):
          return reduce(lambda d, kk: d[kk], k, self)
      return super().__getitem__(k)
  
file_path: EasyOCR/trainer/craft/config/load_config.py
imports: import os
  import yaml
  from functools import reduce
label_desc: Use image node_id 2 for calling the DotDict obj's underlying member method code with example usage: obj.__getitem__(k) and returns: super, reduce