code: def test_max_n_locator_invalid_n(n):
      with pytest.raises(ValueError):
          _ = MaxNLocator(n)
  
imports: import numpy
  import pytest
  from ...util.locator import MaxNLocator
label_desc: Use image node_id 2 for calling a global function with example usage: test_max_n_locator_invalid_n(n) without return types