code: def test_c4_bare_preprocess_fn_denoising_objective(self):
      _t5_gin_config()
  
      dataset = _c4_dataset()
      dataset = tf_inputs.c4_bare_preprocess_fn(
          dataset, spm_path=_spm_path()
      )
  
      example = list(tfds.as_numpy(dataset.take(1)))[0]
  
      # Assertions now.
  
      self.assertIn("targets", example)
      targets = example["targets"]
      self.assertIsInstance(targets, np.ndarray)
      self.assertEqual(targets.dtype, np.int64)
      self.assertGreater(len(targets), 0)
  
      self.assertIn("inputs", example)
      _inputs = example["inputs"]  # pylint: disable=invalid-name
      self.assertIsInstance(_inputs, np.ndarray)
      self.assertEqual(_inputs.dtype, np.int64)
      self.assertGreater(len(_inputs), 0)
  
      # WHP inputs will have the bulk of the text.
      self.assertGreater(len(_inputs), len(targets))
  
      # WHP there will be one sentinel token in the inputs and targets.
      inputs_counter = collections.Counter(_inputs.tolist())
      targets_counter = collections.Counter(targets.tolist())
      self.assertEqual(1, inputs_counter[31999])
      self.assertEqual(1, targets_counter[31999])
  
imports: import collections
  import os
  from unittest import mock
  import gin
  import numpy
  from t5.data import assert_dataset
  from t5.data import preprocessors
  import tensorflow
  import tensorflow_datasets
  from trax.data import inputs
  from trax.data import tf_inputs
label_desc: Use image node_id 14 for calling the TFInputsTest obj's underlying member method code with example usage: obj.test_c4_bare_preprocess_fn_denoising_objective() without return types