code: def einsum(
      equation: str,
      *operands: np.ndarray,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      equation = legalise_einsum_expr(*[equation, *operands])
      return np.einsum(equation, *operands, out=out)
  
file_path: ivy/ivy/functional/backends/numpy/statistical.py
imports: import numpy
  from typing import Union, Optional, Sequence
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.functional.backends.numpy.helpers import _scalar_output_to_0d_array
  from .None import backend_version
  from ivy.utils.einsum_parser import legalise_einsum_expr
label_desc: Use image node_id 11 for calling a global function with example usage: einsum(equation) and returns: np