code: def _get_out(out, src, shape):
      if out is None:
          return np.zeros(shape, dtype=src.dtype)
      else:
          if out.shape != shape:
              raise ValueError("'shape' and 'out' are incompatible")
          if out.shape == src.shape:
              return None
          return out
  
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 7 for calling a global function with example usage: _get_out(out, src, shape) and returns: np, out, None