code: def nested_setattr(obj, names, val):
      target = nested_getattr(obj, names[:-1])
      setattr(target, names[-1], val)
  
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 2 for calling a global function with example usage: nested_setattr(obj, names, val) without return types