code: def _is_stackable(arrays: List, axis: int = 0) -> bool:
      """
      Check if elements are scalars, have too few dimensions, or their target
      axes have equal length; i.e. they are directly `stack` able.
      """
      if isinstance(arrays[0], np.ndarray):
          s = {arr.shape[axis] for arr in arrays}
          return len(s) <= 1 and arrays[0].shape[axis] != 0
      return True
  
file_path: gluonts/src/gluonts/mx/batchify.py
imports: import functools
  from typing import List, Optional, Type
  import mxnet
  import numpy
  from gluonts.dataset.common import DataBatch
label_desc: Use image node_id 2 for calling a global function with example usage: _is_stackable(arrays, axis) and returns: True, unknown