code: def test_int(self, dtype):
      self.assertFeatureEagerOnly(
          feature=feature_lib.Dataset(dtype, length=3),
          shape=(),
          dtype=np.int32,
          tests=[
              # Python array
              testing.FeatureExpectationItem(
                  value=[1, 2, 3],
                  expected=tf.data.Dataset.from_tensor_slices(
                      [1, 2, 3]
                  ),
                  expected_np=[1, 2, 3],
              ),
              # Numpy array
              testing.FeatureExpectationItem(
                  value=np.ones(shape=(3,), dtype=np.int32),
                  expected=tf.data.Dataset.from_tensor_slices(
                      [1, 1, 1]
                  ),
                  expected_np=[1, 1, 1],
              ),
              # Datasets with a different lenght will fail on encoding.
              testing.FeatureExpectationItem(
                  value=np.ones(shape=(4,), dtype=np.int32),
                  raise_cls=ValueError,
                  raise_cls_np=ValueError,
                  raise_msg="Error while serializing feature",
              ),
          ],
      )
  
imports: import pickle
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import dataset_utils
  from tensorflow_datasets.core import decode
  from tensorflow_datasets.core import features
label_desc: Use image node_id 1 for calling the DatasetFeatureTest obj's underlying member method code with example usage: obj.test_int(dtype) without return types