code: def check_symbol_consistency(
      sym1, sym2, ctx, skip_grad=False, equal_nan=False
  ):
      assert sym1.list_arguments() == sym2.list_arguments()
      assert (
          sym1.list_auxiliary_states() == sym2.list_auxiliary_states()
      )
      assert sym1.list_outputs() == sym2.list_outputs()
  
      mx.test_utils.check_consistency(
          [sym1, sym2],
          ctx_list=[ctx, ctx],
          grad_req="null" if skip_grad else "write",
          equal_nan=equal_nan,
      )
  
imports: import copy
  import sys
  import os
  import logging
  import re
  import json
  import mxnet
  import numpy
  from common import assertRaises, models, TemporaryDirectory
  from mxnet.base import NotImplementedForSymbol
  from mxnet.test_utils import discard_stderr, rand_shape_nd, use_np, environment
  from mxnet.util import np_shape
  import pickle
label_desc: Use image node_id 13 for calling a global function with example usage: check_symbol_consistency(sym1, sym2, ctx, skip_grad, equal_nan) without return types