code: def test_tensor_feature(self):
      feature = feature_lib.Dataset(
          feature_lib.Tensor(dtype=np.uint8, shape=(4, 2))
      )
      example = np.ones(shape=(24,), dtype=np.uint8)
      expected = [np.ones(shape=(4, 2), dtype=np.int32)] * 3
      self.assertAllEqualNested(
          feature.decode_example_np(example), expected
      )
  
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 2 for calling the DecodeExampleNpTest obj's underlying member method code with example usage: obj.test_tensor_feature() without return types