code: def deep_getattr(obj, key):
      for part in key.split("."):
          obj = getattr(obj, part)
      return obj
  
file_path: pyro/pyro/infer/autoguide/utils.py
imports: import functools
  from contextlib import contextmanager
  from pyro import poutine
  from pyro.nn.module import PyroModule
label_desc: Use image node_id 2 for calling a global function with example usage: deep_getattr(obj, key) and returns: obj