code: def _chk2_asarray(a, b, axis):
      a = ma.asanyarray(a)
      b = ma.asanyarray(b)
      if axis is None:
          a = ma.ravel(a)
          b = ma.ravel(b)
          outaxis = 0
      else:
          outaxis = axis
      return a, b, outaxis
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy import ndarray
  import numpy.ma
  from numpy.ma import masked, nomask
  from scipy._lib.six import iteritems
  import itertools
  import warnings
  from collections import namedtuple
  from .None import distributions
  import scipy.special
  from ._stats_mstats_common import _find_repeats, linregress, theilslopes, siegelslopes
label_desc: Use image node_id 2 for calling a global function with example usage: _chk2_asarray(a, b, axis) and returns: a,  b,  outaxis