code: def _test_apply_impl(
      self, tensor, pending_transforms, expected_shape
  ):
      result = apply_pending(tensor, pending_transforms)
      self.assertListEqual(result[1], pending_transforms)
      self.assertEqual(result[0].shape, expected_shape)
  
file_path: MONAI/tests/test_apply.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from monai.transforms.lazy.functional import apply_pending
  from monai.transforms.utils import create_rotate
  from monai.utils import LazyAttr, convert_to_tensor
  from tests.utils import get_arange_img
label_desc: Use image node_id 1 for calling the TestApply obj's underlying member method code with example usage: obj._test_apply_impl(tensor, pending_transforms, expected_shape) without return types