code: def test_gather_pfor_grad(self):
      x = array_ops.zeros([1, 2])
      with backprop.GradientTape() as tape:
          tape.watch(x)
          r = pfor_control_flow_ops.vectorized_map(
              lambda t: array_ops.gather(x, t, axis=-1),
              math_ops.range(2),
          )
      self.assertAllClose([[1.0, 1.0]], tape.gradient(r, x))
  
imports: from tensorflow.python.eager import backprop
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import tensor_array_grad
  from tensorflow.python.ops.parallel_for import control_flow_ops
  from tensorflow.python.ops.parallel_for.test_util import PForTestCase
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the ArrayTest obj's underlying member method code with example usage: obj.test_gather_pfor_grad() without return types