code: def _as_list(arr):
      """Make sure input is a list of mxnet NDArray"""
      if not isinstance(arr, (list, tuple)):
          return [arr]
      return arr
  
imports: from __future__ import absolute_import
  from mxnet import gluon
  from mxnet import nd
  from mxnet.gluon.loss import Loss, _apply_weighting, _reshape_like
label_desc: Use image node_id 1 for calling a global function with example usage: _as_list(arr) and returns: arr, list