code: def test_bool_flat(self, dtype, encoding: features_lib.Encoding):
      self.assertFeature(
          feature=features_lib.Tensor(
              shape=(),
              dtype=dtype,
              encoding=encoding,
          ),
          dtype=dtype,
          shape=(),
          tests=[
              testing.FeatureExpectationItem(
                  value=np.array(True),
                  expected=True,
                  expected_np=True,
              ),
              testing.FeatureExpectationItem(
                  value=np.array(False),
                  expected=False,
                  expected_np=False,
              ),
              testing.FeatureExpectationItem(
                  value=True,
                  expected=True,
                  expected_np=True,
              ),
              testing.FeatureExpectationItem(
                  value=False,
                  expected=False,
                  expected_np=False,
              ),
              testing.FeatureExpectationItem(
                  value=1,
                  expected=True,
                  expected_np=True,
              ),
              testing.FeatureExpectationItem(
                  value=2,
                  expected=True,
                  expected_np=True,
              ),
              testing.FeatureExpectationItem(
                  value=0,
                  expected=False,
                  expected_np=False,
              ),
          ],
      )
  
imports: from absl.testing import parameterized
  import jax.numpy
  import numpy
  import pytest
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import features
label_desc: Use image node_id 6 for calling the FeatureTensorTest obj's underlying member method code with example usage: obj.test_bool_flat(dtype, encoding) without return types