code: def batched_outer(tensors):
      """Returns the outer product of tensors
  
      Parameters
      ----------
      tensors : tensor list
          list of tensors of shape (batch-size, I_1, ..., I_N)
  
      Returns
      -------
      batched outer (tensor) product of the tensors
      """
      for i, tensor in enumerate(tensors):
          if i:
              res = tensordot(res, tensor, modes=(), batched_modes=(0))
          else:
              res = tensor
      return res
  
label_desc: Use image node_id 2 for calling a global function with example usage: batched_outer(tensors) and returns: res