class_docstr: Some tests for local_minima are included as well.
class_docstr_tok: ["Some","tests","for","local_minima","are","included","as","well","."]
docstr: Test result with empty image.
docstr_tok: ["Test","result","with","empty","image","."]
code: def test_empty(self):
      """Test result with empty image."""
      result = extrema.local_maxima(np.array([[]]), indices=False)
      assert result.size == 0
      assert result.dtype == bool
      assert result.shape == (1, 0)
  
      result = extrema.local_maxima(np.array([]), indices=True)
      assert isinstance(result, tuple)
      assert len(result) == 1
      assert result[0].size == 0
      assert result[0].dtype == np.intp
  
      result = extrema.local_maxima(np.array([[]]), indices=True)
      assert isinstance(result, tuple)
      assert len(result) == 2
      assert result[0].size == 0
      assert result[0].dtype == np.intp
      assert result[1].size == 0
      assert result[1].dtype == np.intp
  
imports: import math
  import unittest
  import numpy
  from numpy.testing import assert_equal
  from pytest import raises, warns
  from skimage._shared.testing import expected_warnings
  from skimage.morphology import extrema
label_desc: Use image node_id 1 for calling the TestLocalMaxima obj's underlying member method code with example usage: obj.test_empty() without return types