code: def testPForInterop(self):
      def outer_product(a):
          return np.tensordot(a, a, 0)
  
      batch_size = 100
      a = np.ones((batch_size, 32, 32))
      c = tf.vectorized_map(outer_product, a)
  
      self.assertIsInstance(c, np.ndarray)
      self.assertEqual(c.shape, (batch_size, 32, 32, 32, 32))
  
      c = tf.vectorized_map(lambda x: x.T, a)
  
      self.assertIsInstance(c, np.ndarray)
      self.assertEqual(c.shape, (batch_size, 32, 32))
  
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.numpy_ops import np_math_ops
label_desc: Use image node_id 16 for calling the InteropTest obj's underlying member method code with example usage: obj.testPForInterop() and returns: np