code: def _get_graph_inputs(subg):
      num_handles = ctypes.c_int(0)
      handles = ctypes.POINTER(SymbolHandle)()
      check_call(
          _LIB.MXSymbolGetInputSymbols(
              subg.handle,
              ctypes.byref(handles),
              ctypes.byref(num_handles),
          )
      )
  
      syms = []
      for i in range(num_handles.value):
          s = Symbol(ctypes.cast(handles[i], SymbolHandle))
          syms.append(s)
      return syms
  
imports: import math
  import ctypes
  import copy
  from .random import uniform
  from .symbol import Symbol
  from .None import symbol
  from ..base import _LIB, check_call
  from ..base import SymbolHandle, _as_list
  from ..attribute import AttrScope, current
label_desc: Use image node_id 5 for calling a global function with example usage: _get_graph_inputs(subg) and returns: syms