code: def get_target_input(module, input, output):
      """A forward hook which saves the tensor - attached to its graph.
      Used if we want to explain the interim outputs of a model
      """
      try:
          del module.target_input
      except AttributeError:
          pass
      setattr(module, "target_input", input)
  
file_path: shap/shap/explainers/_deep/deep_pytorch.py
imports: import warnings
  import numpy
  from packaging import version
  from .._explainer import Explainer
  from .deep_utils import _check_additivity
label_desc: Use image node_id 3 for calling a global function with example usage: get_target_input(module, input, output) without return types