code: def _get_mask(src):
      if isinstance(src, np.ma.MaskedArray):
          mask = np.ma.getmask(src)
          if mask is not np.ma.nomask:
              return mask, True
      return _NOMASK2D, False
  
imports: from __future__ import annotations
  from itertools import groupby
  from math import floor, ceil
  import dask.array
  import numpy
  from dask.delayed import delayed
  from numba import prange
  from .utils import ngjit, ngjit_parallel
label_desc: Use image node_id 8 for calling a global function with example usage: _get_mask(src) and returns: _NOMASK2D,  False, mask,  True