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