code: def test_addition_inputs_exceptions(self, encdec):
      vocab_size = 5
      batch_size = 256
      seq_length = 64
      # Check if max/min lengths are validated for train stream
      with self.assertRaises(ValueError):
          inputs = data.inputs.addition_inputs(
              vocab_size=vocab_size,
              batch_size=batch_size,
              train_length=2,
              eval_min_length=1,
              eval_max_length=seq_length,
              pad_to_multiple=seq_length,
              encdec=encdec,
          )
          train_stream = inputs.train_stream(n_devices=1)
          for _ in range(10):
              next(train_stream)
  
      # Check if max/min lengths are validated for eval stream
      with self.assertRaises(ValueError):
          inputs = data.inputs.addition_inputs(
              vocab_size=vocab_size,
              batch_size=batch_size,
              train_length=seq_length,
              eval_min_length=1,
              eval_max_length=seq_length,
              pad_to_multiple=seq_length,
              encdec=True,
          )
          eval_stream = inputs.eval_stream(n_devices=1)
          for _ in range(10):
              next(eval_stream)
  
imports: import itertools
  import os
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from trax import data
label_desc: Use image node_id 32 for calling the InputsTest obj's underlying member method code with example usage: obj.test_addition_inputs_exceptions(encdec) without return types