code: def test_string_not_found_multi(multiindex):
      """Raise KeyError if passed string is not found in the MultiIndex."""
      with pytest.raises(KeyError, match="No match was returned.+"):
          multiindex.droplevel("second").select_rows("2.5")
  
imports: import datetime
  import re
  import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 9 for calling a global function with example usage: test_string_not_found_multi(multiindex) without return types