code: def nested_getattr(obj, names):
      for name in names:
          obj = getattr(obj, name)
      return obj
  
imports: from __future__ import division
  from ...util import keys
  from ..node import Node
  from ...visuals.transforms import STTransform, MatrixTransform, NullTransform, TransformCache
label_desc: Use image node_id 1 for calling a global function with example usage: nested_getattr(obj, names) and returns: obj