code: def _reverse_input_einsum_eq(equation: str) -> str:
      """
      Reverse the input order of the einsum equation
      e.g.:
      input : "nchw,nwhu->nchu"
      returns : "nwhu,nchw->nchu"
      """
      input_output_strings = equation.split("->")
      assert len(input_output_strings) == 2, "invalid equation"
      input_strings = input_output_strings[0].split(",")
      assert len(input_strings) == 2, "invalid equation"
      equation = (
          input_strings[1]
          + ","
          + input_strings[0]
          + "->"
          + input_output_strings[1]
      )
      return equation
  
file_path: coremltools/coremltools/converters/mil/frontend/_utils.py
imports: import itertools
  from typing import List, Optional
  from coremltools.converters.mil.input_types import InputType
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Var, types
  from coremltools.converters.mil.mil.ops.defs._utils import parse_einsum_equation
  from coremltools.converters.mil.mil.types.symbolic import any_symbolic, is_symbolic
label_desc: Use image node_id 2 for calling a global function with example usage: _reverse_input_einsum_eq(equation) and returns: equation