class_docstr: Tests for batch_ops.{un,}batch.
class_docstr_tok: ["Tests","for","batch_ops",".","{","un",",","}","batch","."]
code: def testUnbatchGradInvalidBatchId(self):
      with self.assertRaises(errors.InvalidArgumentError):
          self.evaluate(
              gen_batch_ops.unbatch_grad(
                  original_input=constant_op.constant([1]),
                  batch_index=constant_op.constant(
                      [
                          [0, 0],
                      ],
                      dtype=dtypes.int64,
                  ),
                  grad=constant_op.constant(
                      [
                          1,
                      ]
                  ),
                  id=constant_op.constant(
                      [
                          1,
                      ],
                      dtype=dtypes.int64,
                  ),
              )
          )
  
imports: import threading
  import time
  import numpy
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import function
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework.errors import InvalidArgumentError
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import batch_ops
  from tensorflow.python.ops import gen_batch_ops
  from tensorflow.python.ops import gen_functional_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import script_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 19 for calling the BatchOpsTest obj's underlying member method code with example usage: obj.testUnbatchGradInvalidBatchId() without return types