code: def get_symbol(x):
      """Retrieve recorded computation history as `Symbol`.
  
      Parameters
      ----------
      x : NDArray
          Array representing the head of computation graph.
  
      Returns
      -------
      Symbol
          The retrieved Symbol.
      """
      assert isinstance(
          x, NDArray
      ), f"get_symbol: Invalid argument type, expecting {NDArray}, got {type(x)}"
      hdl = SymbolHandle()
      check_call(_LIB.MXAutogradGetSymbol(x.handle, ctypes.byref(hdl)))
      return Symbol(hdl)
  
imports: from array import array
  from threading import Lock
  import traceback
  import ctypes
  from ctypes import c_int, c_void_p, CFUNCTYPE, POINTER, cast
  from .base import _LIB, check_call, string_types, mx_uint
  from .base import NDArrayHandle, c_array, c_handle_array, c_array_buf, MXCallbackList, SymbolHandle
  from .ndarray import NDArray, _ndarray_cls
  from .ndarray import _GRAD_REQ_MAP
  from .symbol import Symbol
  from .util import is_np_array
label_desc: Use image node_id 13 for calling a global function with example usage: get_symbol(x) and returns: Symbol