docstr: Ensure reset() clears seqio.TaskRegistry.
docstr_tok: ["Ensure","reset","(",")","clears","seqio.TaskRegistry","."]
code: def test_task_registry_reset(self):
      """Ensure reset() clears seqio.TaskRegistry."""
      _add_t5_task(
          "t5_task_before_reset",
          dataset_providers.TFExampleTask,
          split_to_filepattern={},
          feature_description={},
      )
      # Assert that task was added to both t5.data.TaskRegistry and
      # seqio.TaskRegistry.
      self.assertSameElements(
          TaskRegistry.names(), seqio.TaskRegistry.names()
      )
      TaskRegistry.reset()
      _add_t5_task(
          "t5_task_after_reset",
          dataset_providers.TFExampleTask,
          split_to_filepattern={},
          feature_description={},
      )
      # Assert that task was added to both t5.data.TaskRegistry and
      # seqio.TaskRegistry so that they don't diverge after reset() call.
      self.assertSameElements(
          TaskRegistry.names(), seqio.TaskRegistry.names()
      )
  
imports: import os
  from absl.testing import absltest
  import immutabledict
  import seqio
  from seqio import test_utils
  from t5.data import dataset_providers
  import tensorflow.compat.v2
label_desc: Use image node_id 10 for calling the TasksTest obj's underlying member method code with example usage: obj.test_task_registry_reset() without return types