class_docstr: Tests text data class.
      
docstr: Tests different batching.
          
docstr_tok: ["Tests","different","batching","."]
code: def test_batching(self):
      """Tests different batching."""
      # dis-allow smaller final batch
      hparams = copy.copy(self._hparams)
      hparams.update({"allow_smaller_final_batch": False})
      self._run_and_test(hparams, test_batch_size=True)
  
imports: import tempfile
  import copy
  import numpy
  import tensorflow
  import texar.tf
label_desc: Use image node_id 4 for calling the MonoTextDataTest obj's underlying member method code with example usage: obj.test_batching() without return types