code: def einsum(
      g: jit_utils.GraphContext, equation, tensor_list, path=None
  ):
      tensors = symbolic_helper._unpack_list(tensor_list)
      return _einsum_helper(g, equation, tensors)
  
imports: from __future__ import annotations
  import functools
  import sys
  from typing import Optional, Tuple
  import torch
  from torch._C import _onnx
  from torch.onnx import _type_utils, errors, symbolic_helper, symbolic_opset9, utils
  from torch.onnx._internal import _beartype, jit_utils, registration
label_desc: Use image node_id 2 for calling a global function with example usage: einsum(g, equation, tensor_list, path) and returns: _einsum_helper