code: def test_zero_size(dtype):
      img = np.ones((300, 0, 300), dtype=dtype)
      lab, num = label(img, return_num=True)
  
      assert lab.shape == img.shape
      assert num == 0
  
file_path: scikit-image/skimage/measure/tests/test_label.py
imports: import pytest
  import numpy
  from skimage import data
  from skimage.measure._label import _label_bool, label
  from skimage.measure._ccomp import label_cython
  from skimage._shared import testing
label_desc: Use image node_id 5 for calling a global function with example usage: test_zero_size(dtype) without return types