code: def testInt32Error(self):
      self._setup_context()
  
      inputs = [[0, 1], [2, 3]]
      group_key = 1
      instance_key = 50
  
      @def_function.function
      def run_int32_error():
          for i in range(self._group_size):
              with ops.device(self._devices[i]):
                  t = constant_op.constant(
                      inputs[i], dtype=dtypes.int32
                  )
                  collective_ops.all_reduce(
                      t,
                      self._group_size,
                      group_key,
                      instance_key,
                      "Add",
                      "Div",
                  )
  
      with self.assertRaisesRegex(
          errors.InternalError,
          "does not support datatype DT_INT32 on DEVICE_GPU",
      ):
          run_int32_error()
  
imports: import os
  import threading
  import time
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import config
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import collective_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the CollectiveOpGPUTest obj's underlying member method code with example usage: obj.testInt32Error() without return types