code: def test_dict_regex(multiindex):
      """Test output on a dict"""
      mapp = {"first": ["bar", "qux"], "second": re.compile("tw.")}
      expected = multiindex.select_columns(mapp)
      actual = multiindex.loc(axis=1)[["bar", "qux"], "two"]
      assert_frame_equal(expected, actual)
  
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 35 for calling a global function with example usage: test_dict_regex(multiindex) without return types