code: def _outer_prod(v1, v2):
      """Computes the outer product of v1 and v2."""
      return tf.linalg.einsum("...i,...j->...ij", v1, v2)
  
imports: import functools
  import math
  from typing import Callable, List, Optional
  import numpy
  import tensorflow.compat.v2
  from tf_quant_finance import types
  from tf_quant_finance import utils
  from tf_quant_finance.math import custom_loops
  from tf_quant_finance.math import gradient
  from tf_quant_finance.math import random_ops
  from tf_quant_finance.models import utils
label_desc: Use image node_id 5 for calling a global function with example usage: _outer_prod(v1, v2) and returns: tf