code: def test_repr_tensor(self, dtype):
      # Top level Tensor is printed expanded
      self.assertEqual(
          repr(features_lib.Tensor(shape=(), dtype=tf.int32)),
          "Tensor(shape=(), dtype=int32)",
      )
  
      # Sequences colapse tensor repr
      self.assertEqual(
          repr(features_lib.Sequence(tf.int32)),
          "Sequence(int32)",
      )
  
      class ChildTensor(features_lib.Tensor):
          pass
  
      self.assertEqual(
          repr(
              features_lib.FeaturesDict(
                  {
                      "colapsed": features_lib.Tensor(
                          shape=(), dtype=dtype
                      ),
                      # Tensor with defined shape are printed expanded
                      "noncolapsed": features_lib.Tensor(
                          shape=(1,), dtype=dtype
                      ),
                      # Tensor inherited are expanded
                      "child": ChildTensor(shape=(), dtype=dtype),
                  }
              )
          ),
          textwrap.dedent(
              """\
          FeaturesDict({
              'child': ChildTensor(shape=(), dtype=int32),
              'colapsed': int32,
              'noncolapsed': Tensor(shape=(1,), dtype=int32),
          })"""
          ),
      )
  
imports: import pathlib
  import sys
  import textwrap
  from unittest import mock
  from absl import logging
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import features
label_desc: Use image node_id 7 for calling the FeatureDictTest obj's underlying member method code with example usage: obj.test_repr_tensor(dtype) without return types