code: def test_batch_inputs_raises(
      self,
      inputs: Sequence[types.JsonDict],
      keys: Optional[list[str]],
      expected: Exception,
  ):
      with self.assertRaises(expected):
          utils.batch_inputs(inputs, keys=keys)
  
imports: from collections.abc import Callable, Sequence
  import copy
  from typing import Any, Optional, TypeVar, Union
  from absl.testing import absltest
  from absl.testing import parameterized
  from lit_nlp.api import types
  from lit_nlp.lib import utils
  import numpy
label_desc: Use image node_id 7 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_batch_inputs_raises(inputs, keys, expected) without return types