code: def test_output_shape(self, class_args, img_shape):
      for p in TEST_NDARRAYS:
          for degree in [1, 2, 3]:
              bias_field = RandBiasField(degree=degree, **class_args)
              img = p(np.random.rand(*img_shape))
              output = bias_field(img)
              np.testing.assert_equal(output.shape, img_shape)
              self.assertTrue(
                  output.dtype in (np.float32, torch.float32)
              )
  
              img_zero = np.zeros([*img_shape])
              output_zero = bias_field(img_zero)
              np.testing.assert_equal(output_zero, img_zero)
  
file_path: MONAI/tests/test_rand_bias_field.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.transforms import RandBiasField
  from tests.utils import TEST_NDARRAYS
label_desc: Use image node_id 1 for calling the TestRandBiasField obj's underlying member method code with example usage: obj.test_output_shape(class_args, img_shape) without return types