code: def test_format_error_message():
      with pytest.raises(ValueError, match="Invalid form: 'toto'"):
          _ = csgraph.laplacian(np.eye(1), form="toto")
  
file_path: scipy/scipy/sparse/csgraph/tests/test_graph_laplacian.py
imports: import pytest
  import numpy
  from numpy.testing import assert_allclose
  from pytest import raises
  from scipy import sparse
  from scipy.sparse import csgraph
  from scipy._lib._util import np_long, np_ulong
label_desc: Use image node_id 13 for calling a global function with example usage: test_format_error_message() without return types