code: def check(
      self, tr: RandLambdad, input: dict, out: dict, expected: dict
  ):
      if isinstance(input["img"], MetaTensor):
          self.assertEqual(len(input["img"].applied_operations), 0)
      self.assertIsInstance(out["img"], MetaTensor)
      self.assertEqual(len(out["img"].applied_operations), 1)
      assert_allclose(expected["img"], out["img"], type_test=False)
      assert_allclose(expected["prop"], out["prop"], type_test=False)
      inv = tr.inverse(out)
      self.assertIsInstance(inv["img"], MetaTensor)
      self.assertEqual(len(inv["img"].applied_operations), 0)
  
file_path: MONAI/tests/test_rand_lambdad.py
imports: from __future__ import annotations
  import unittest
  from copy import deepcopy
  import numpy
  from parameterized import parameterized
  from monai.data.meta_tensor import MetaTensor
  from monai.transforms.transform import Randomizable
  from monai.transforms.utility.dictionary import RandLambdad
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 1 for calling the TestRandLambdad obj's underlying member method code with example usage: obj.check(tr, input, out, expected) without return types