code: def test_number_dates(df_dates):
      """Raise if selecting number on a date column"""
      with pytest.raises(
          KeyError, match="No match was returned for 2.5"
      ):
          df_dates.select_columns(2.5)
  
imports: import datetime
  import re
  from itertools import product
  import numpy
  import pandas
  import pytest
  from pandas.api.types import is_numeric_dtype
  from pandas.testing import assert_frame_equal
  from janitor.functions.utils import DropLabel, get_columns, patterns
label_desc: Use image node_id 29 for calling a global function with example usage: test_number_dates(df_dates) without return types