code: def test_invert_warn_pending(self):
      # this test shouldn't raise a warning or error any more as that issue was fixed
      # by https://github.com/Project-MONAI/MONAI/pull/6257
      set_determinism(seed=0)
      im_fname = make_nifti_image(
          create_test_image_3d(101, 100, 107, noise_max=100)[1]
      )  # label image, discrete
      transform = Compose(
          [
              LoadImage(image_only=True),
              EnsureChannelFirst(),
              Orientation("RPS"),
              Lambda(func=lambda x: x),
          ],
          lazy=True,
      )
      output = transform([im_fname for _ in range(2)])
      transform.inverse(output)
  
file_path: MONAI/tests/test_invert.py
imports: from __future__ import annotations
  import sys
  import unittest
  from copy import deepcopy
  import numpy
  import torch
  from monai.data import DataLoader, Dataset, MetaTensor, create_test_image_3d, decollate_batch
  from monai.transforms import CastToType, Compose, EnsureChannelFirst, Invert, Lambda, LoadImage, Orientation, RandAffine, RandAxisFlip, RandFlip, RandRotate, RandRotate90, RandZoom, ResizeWithPadOrCrop, Spacing
  from monai.utils import set_determinism
  from tests.utils import assert_allclose, make_nifti_image
label_desc: Use image node_id 2 for calling the TestInvert obj's underlying member method code with example usage: obj.test_invert_warn_pending() without return types