code: def _value_as_sequence_or_array(val, var):
      has_seq_axis = len(var.dynamic_axes) > 1
      if has_seq_axis:
          return _value_as_sequence(val, var)
      else:
          map_if_possible(val)
          return val.asarray()
  
file_path: CNTK/bindings/python/cntk/internal/__init__.py
imports: from .swig_helper import typemap, map_if_possible
  from .sanitize import *
  from .sanitize import _as_tuple
  import cntk
label_desc: Use image node_id 2 for calling a global function with example usage: _value_as_sequence_or_array(val, var) and returns: _value_as_sequence, val