code: def test_patterns_warning(df_strings):
      """
      Check that warning is raised if `janitor.patterns` is used.
      """
      with pytest.warns(DeprecationWarning):
          assert_frame_equal(
              df_strings.select_columns(patterns(r"\d$")),
              df_strings.filter(regex=r"\d$"),
          )
  
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 18 for calling a global function with example usage: test_patterns_warning(df_strings) without return types