code: def _set_deep_layer_value(obj, layer_names, value):
      r"""
      Traverses through the layer names that are separated by
      dot in order to access the embedding layer and update its value.
      """
      layer_names = layer_names.split(".")
      setattr(
          reduce(getattr, layer_names[:-1], obj), layer_names[-1], value
      )
  
file_path: captum/captum/attr/_models/base.py
imports: import warnings
  from functools import reduce
  import torch
  from torch.nn import Module
label_desc: Use image node_id 2 for calling a global function with example usage: _set_deep_layer_value(obj, layer_names, value) without return types