code: def _cross(r0, r1, dtype=np.uint8):
      """Cross-shaped structuring element of shape (r0, r1).
  
      Only the central row and column are ones.
      """
      s0 = int(2 * r0 + 1)
      s1 = int(2 * r1 + 1)
      c = np.zeros((s0, s1), dtype=dtype)
      if r1 != 0:
          c[r0, :] = 1
      if r0 != 0:
          c[:, r1] = 1
      return c
  
imports: import os
  from collections.abc import Sequence
  from numbers import Integral
  import numpy
  from ..None import draw
  from skimage import morphology
label_desc: Use image node_id 11 for calling a global function with example usage: _cross(r0, r1, dtype) and returns: c