class_docstr: Tests multi aligned text data class.
      
class_docstr_tok: ["Tests","multi","aligned","text","data","class","."]
docstr: Tests filtering by length.
          
docstr_tok: ["Tests","filtering","by","length","."]
code: def test_length_filter(self):
      """Tests filtering by length."""
      hparams = copy.copy(self._hparams)
      hparams["datasets"][0].update(
          {"max_seq_length": 4, "length_filter_mode": "discard"}
      )
      hparams["datasets"][1].update(
          {"max_seq_length": 2, "length_filter_mode": "truncate"}
      )
      self._run_and_test(hparams, discard_did=0)
  
file_path: texar/tests/data/data/multi_aligned_data_test.py
imports: import sys
  import tempfile
  import copy
  import numpy
  import tensorflow
  import texar.tf
label_desc: Use image node_id 4 for calling the MultiAlignedDataTest obj's underlying member method code with example usage: obj.test_length_filter() without return types