code: def _get_deep_layer_name(obj, layer_names):
      r"""
      Traverses through the layer names that are separated by
      dot in order to access the embedding layer.
      """
      return reduce(getattr, layer_names.split("."), obj)
  
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 1 for calling a global function with example usage: _get_deep_layer_name(obj, layer_names) and returns: reduce