code: def _make_numpy_array(x):
      if isinstance(x, np.ndarray):
          return x
      elif np.isscalar(x):
          return np.array([x])
      elif isinstance(x, NDArray):
          return x.asnumpy()
      else:
          raise TypeError(
              "_make_numpy_array only accepts input types of numpy.ndarray, scalar,"
              " and MXNet NDArray, while received type {}".format(
                  str(type(x))
              )
          )
  
file_path: mxboard/python/mxboard/utils.py
imports: from __future__ import absolute_import
  import os
  import logging
  import numpy
  from mxnet.ndarray import NDArray, op
  from mxnet.ndarray import ndarray
  from mxnet.context import current_context
label_desc: Use image node_id 3 for calling a global function with example usage: _make_numpy_array(x) and returns: x, np, x