code: def get_ndarray(variable):
      if variable.is_parameter:
          return variable.as_parameter().asarray()
  
      elif variable.is_constant:
          return variable.as_constant().asarray()
  
      else:
          raise ValueError("Unknown variable [{}].".format(variable))
  
imports: import os
  import numpy
  from six.moves import xrange
  import cntk
  from mmdnn.conversion.cntk.cntk_graph import CntkGraph
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
  from mmdnn.conversion.common.utils import *
  from mmdnn.conversion.common.DataStructure.parser import Parser
label_desc: Use image node_id 10 for calling the CntkParser obj's underlying member method code with example usage: obj.get_ndarray(variable) and returns: variable, variable