code: def test_rand_lambdad_identity(self, t):
      img = t(np.zeros((10, 10)))
      img_t = type(img)
  
      test_func = RandTest()
      test_func.set_random_state(seed=134)
      expected = test_func(img)
      test_func.set_random_state(seed=134)
  
      # default prob
      tr = RandLambda(func=test_func)
      ret = tr(img)
      self.check(tr, img, img_t, ret, expected)
  
      tr = RandLambda(func=test_func, prob=0.0)
      ret = tr(img)
      self.check(tr, img, img_t, ret, expected=img)
  
      trans = RandLambda(func=test_func, prob=0.5)
      trans.set_random_state(seed=123)
      ret = trans(img)
      self.check(trans, img, img_t, ret, expected=img)
  
file_path: MONAI/tests/test_rand_lambda.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.array import RandLambda
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 2 for calling the TestRandLambda obj's underlying member method code with example usage: obj.test_rand_lambdad_identity(t) without return types