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