code: def test_bad_mode():
      with pytest.raises(ValueError):
          _filters._check_mode("nayrest", 0.0, "f")
  
imports: from mahotas import _filters
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_bad_mode() without return types