code: def test_int(self, dtype):
      self.assertFeatureEagerOnly(
          feature=feature_lib.Dataset({"int": dtype}),
          shape={"int": ()},  # shape of each element of the dataset
          dtype={"int": dtype},
          serialized_info={
              "int": feature_lib.TensorInfo(shape=(None,), dtype=dtype),
          },
          tests=[
              # Python array
              testing.FeatureExpectationItem(
                  value=[{"int": 1}, {"int": 2}, {"int": 3}],
                  expected=tf.data.Dataset.from_tensor_slices(
                      {"int": [1, 2, 3]}
                  ),
                  # expected_np=Not implemented yet,
              ),
              # Numpy array
              testing.FeatureExpectationItem(
                  value=dataset_utils.as_numpy(
                      tf.data.Dataset.from_tensor_slices(
                          {"int": np.ones(shape=(3,), dtype=np.int32)}
                      )
                  ),
                  expected=tf.data.Dataset.from_tensor_slices(
                      {"int": [1, 1, 1]}
                  ),
                  expected_np=[{"int": 1}] * 3,
              ),
              # Dataset length doesn't matter
              testing.FeatureExpectationItem(
                  value=dataset_utils.as_numpy(
                      tf.data.Dataset.from_tensor_slices(
                          {"int": np.ones(shape=(4,), dtype=np.int32)}
                      )
                  ),
                  expected=tf.data.Dataset.from_tensor_slices(
                      {"int": [1, 1, 1, 1]}
                  ),
                  expected_np=[{"int": 1}] * 4,
              ),
          ],
          test_attributes=dict(_length=None),
      )
  
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 DatasetDictFeatureTest obj's underlying member method code with example usage: obj.test_int(dtype) without return types