code: def test_mix_types():
      "[watershed regression]: Mixing types of surface and marker arrays used to cause crash"
      f = np.zeros((64, 64), np.uint16)
      f += (np.indices(f.shape)[1] ** 2).astype(np.uint16)
      f += ((np.indices(f.shape)[0] - 23) ** 2).astype(np.uint16)
      markers = np.zeros((64, 64), np.int64)
      markers[32, 32] = 1
      # Below used to force a crash (at least in debug mode)
      a, b = mahotas.cwatershed(f, markers, return_lines=1)
  
file_path: mahotas/mahotas/tests/test_watershed.py
imports: import numpy
  import mahotas
  import mahotas
  import sys
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_mix_types() without return types