code: def _log_applied_info(
      data: Any, key=None, logger_name: bool | str = False
  ):
      if logger_name is False:
          return
      logger_name = (
          logger_name
          if isinstance(logger_name, str)
          else "apply_pending_transforms"
      )
      logger = get_logger(logger_name)
  
      key_str = "" if key is None else f"key: '{key}', "
      logger.info(
          f"Pending transforms applied: {key_str}applied_operations: {len(data.applied_operations)}"
      )
  
file_path: MONAI/monai/transforms/lazy/functional.py
imports: from __future__ import annotations
  from typing import Any, Mapping, Sequence
  import torch
  from monai.apps.utils import get_logger
  from monai.config import NdarrayOrTensor
  from monai.data.meta_tensor import MetaTensor
  from monai.data.utils import to_affine_nd
  from monai.transforms.lazy.utils import affine_from_pending, combine_transforms, is_compatible_apply_kwargs, kwargs_from_pending, resample
  from monai.transforms.traits import LazyTrait
  from monai.transforms.transform import MapTransform
  from monai.utils import LazyAttr, look_up_option
label_desc: Use image node_id 2 for calling a global function with example usage: _log_applied_info(data, key, logger_name) without return types