code: def getattr_recursive(obj, attr):
      return functools.reduce(getattr, [obj] + attr.split("."))
  
file_path: pytorch-lightning/tests/tests_pytorch/helpers/utils.py
imports: import functools
  import os
  from lightning.pytorch.callbacks import ModelCheckpoint
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.loggers import TensorBoardLogger
  from tests_pytorch import _TEMP_PATH
label_desc: Use image node_id 6 for calling a global function with example usage: getattr_recursive(obj, attr) and returns: functools