code: def _to_ndarray(params):
      transformed = {}
  
      for k, v in params.items():
          if not isinstance(v, NDArray):
              transformed[k] = ndarray.array(v)
          else:
              transformed[k] = v
  
      return transformed
  
imports: from .None import _ffi_api, ndarray, NDArray
label_desc: Use image node_id 1 for calling a global function with example usage: _to_ndarray(params) and returns: transformed