class_docstr: Tests for batch_ops.{un,}batch.
class_docstr_tok: ["Tests","for","batch_ops",".","{","un",",","}","batch","."]
docstr: Tests that unbatch work together.
docstr_tok: ["Tests","that","unbatch","work","together","."]
code: def testUnbatchInvalidIdArg(self):
      """Tests that unbatch work together."""
      if context.executing_eagerly():
          batched_tensor = constant_op.constant(
              value=np.random.random(size=(3, 3, 1)),
              dtype=dtypes.float64,
          )
          batched_index = constant_op.constant(
              value=np.random.randint(0, 100, size=(3, 3, 1)),
              dtype=dtypes.int64,
          )
          arg_id = constant_op.constant(
              value=np.random.randint(0, 100, size=(3, 3, 1)),
              dtype=dtypes.int64,
          )
  
          with self.assertRaisesRegex(
              errors.InvalidArgumentError, "Input id should be scalar;"
          ):
              batch_ops.unbatch(
                  batched_tensor=batched_tensor,
                  batch_index=batched_index,
                  id=arg_id,
                  timeout_micros=50,
                  container="",
                  shared_name="",
              )
  
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 7 for calling the BatchOpsTest obj's underlying member method code with example usage: obj.testUnbatchInvalidIdArg() without return types