code: def _replace_zero_by_x_arrays(sub_arys):
      for i in range(len(sub_arys)):
          if _nx.ndim(sub_arys[i]) == 0:
              sub_arys[i] = _nx.empty(0, dtype=sub_arys[i].dtype)
          elif _nx.sometrue(_nx.equal(_nx.shape(sub_arys[i]), 0)):
              sub_arys[i] = _nx.empty(0, dtype=sub_arys[i].dtype)
      return sub_arys
  
imports: from __future__ import division, absolute_import, print_function
  import functools
  import warnings
  import numpy.core.numeric
  from numpy.core.numeric import asarray, zeros, outer, concatenate, array, asanyarray
  from numpy.core.fromnumeric import product, reshape, transpose
  from numpy.core.multiarray import normalize_axis_index
  from numpy.core import overrides
  from numpy.core import vstack, atleast_3d
  from numpy.core.shape_base import _arrays_for_stack_dispatcher, _warn_for_nonsequence
  from numpy.lib.index_tricks import ndindex
  from numpy.matrixlib.defmatrix import matrix
label_desc: Use image node_id 16 for calling a global function with example usage: _replace_zero_by_x_arrays(sub_arys) and returns: sub_arys