class_docstr: Tests text data class.
      
docstr: Tests the item names of the output data.
          
docstr_tok: ["Tests","the","item","names","of","the","output","data","."]
code: def test_list_items(self):
      """Tests the item names of the output data."""
      text_data = tx.data.MonoTextData(self._hparams)
      self.assertSetEqual(
          set(text_data.list_items()), {"text", "text_ids", "length"}
      )
  
      hparams = copy.copy(self._hparams)
      hparams["dataset"]["data_name"] = "data"
      text_data = tx.data.MonoTextData(hparams)
      self.assertSetEqual(
          set(text_data.list_items()),
          {"data_text", "data_text_ids", "data_length"},
      )
  
imports: import tempfile
  import copy
  import numpy
  import tensorflow
  import texar.tf
label_desc: Use image node_id 9 for calling the MonoTextDataTest obj's underlying member method code with example usage: obj.test_list_items() without return types