code: def test_callable(dates):
      """
      Test output for callable
      """
      func = lambda df: df.index.month == 4  # noqa : E731
      assert_frame_equal(
          dates.loc[func], dates.select_rows(func), check_freq=False
      )
  
imports: import datetime
  import re
  import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 23 for calling a global function with example usage: test_callable(dates) without return types