code: def test_einsum(self):
      b = 10
      x_series = random_ops.random_uniform([b, 9, 9])
      y_series = random_ops.random_uniform([b, 9, 1])
  
      def loop_fn(i):
          x = array_ops.gather(x_series, 0)  # invariant.
          y = array_ops.gather(y_series, 0)  # invariant.
          x_i = array_ops.gather(x_series, i)
          y_i = array_ops.gather(y_series, i)
          z0 = special_math_ops.einsum("ab->b", x_i)
          z1 = special_math_ops.einsum("ab,bc->ac", x_i, y)
          z2 = special_math_ops.einsum("ab,bc->ac", x, y_i)
          z3 = special_math_ops.einsum("ab,bc->ac", x, y)
          z4 = special_math_ops.einsum("ab,bc->ac", x_i, y_i)
          z5 = special_math_ops.einsum(
              "cd,ce->de", y_i, x_i
          )  # Includes transpose.
          outputs = [z0, z1, z2, z3, z4, z5]
          return outputs
  
      self._test_loop_fn(loop_fn, b)
  
imports: import itertools
  from absl.testing import parameterized
  from tensorflow.python.eager import backprop
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import clip_ops
  from tensorflow.python.ops import linalg_ops
  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 special_math_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 7 for calling the LinalgTest obj's underlying member method code with example usage: obj.test_einsum() and returns: outputs