code: def test_image(self):
      imgs = [
          np.random.randint(256, size=(128, 100, 3), dtype=np.uint8),
          np.random.randint(256, size=(128, 100, 3), dtype=np.uint8),
          np.random.randint(256, size=(128, 100, 3), dtype=np.uint8),
          np.random.randint(256, size=(128, 100, 3), dtype=np.uint8),
      ]
      imgs_stacked = np.stack(imgs)
  
      self.assertFeature(
          feature=feature_lib.Sequence(
              {
                  "image": feature_lib.Image(shape=(128, 100, 3)),
              },
              length=None,
          ),
          shape={"image": (None, 128, 100, 3)},
          dtype={"image": np.uint8},
          tests=[
              testing.FeatureExpectationItem(
                  value=[{"image": img} for img in imgs],
                  expected={"image": imgs_stacked},
                  expected_np={"image": imgs_stacked},
              ),
              testing.FeatureExpectationItem(
                  value={"image": imgs_stacked},
                  expected={"image": imgs_stacked},
                  expected_np={"image": imgs_stacked},
              ),
              testing.FeatureExpectationItem(
                  value={"image": imgs},
                  expected={"image": imgs_stacked},
                  expected_np={"image": imgs_stacked},
              ),
              # Empty value
              testing.FeatureExpectationItem(
                  value={"image": []},
                  # The empty value still has the right shape
                  expected={
                      "image": np.empty(
                          shape=(0, 128, 100, 3), dtype=np.uint8
                      )
                  },
                  expected_np={
                      "image": np.empty(
                          shape=(0, 128, 100, 3), dtype=np.uint8
                      )
                  },
              ),
          ],
      )
  
imports: import numpy
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import features
label_desc: Use image node_id 9 for calling the SequenceDictFeatureTest obj's underlying member method code with example usage: obj.test_image() without return types