code: def test_str_to_array(
      self, mode: str, normalize: bool, expected: np.ndarray
  ):
      image_str = image_utils.convert_pil_to_image_str(_TEST_IMAGE_RGB)
      image_array = image_utils.convert_image_str_to_array(
          image_str,
          shape=_TEST_IMAGE_SHAPE,
          mode=mode,
          normalize=normalize,
      )
      np.testing.assert_array_almost_equal(expected, image_array)
  
file_path: lit/lit_nlp/lib/image_utils_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from lit_nlp.lib import image_utils
  import numpy
  from PIL import Image
label_desc: Use image node_id 3 for calling the ImageUtilsTest obj's underlying member method code with example usage: obj.test_str_to_array(mode, normalize, expected) without return types