code: def test_select_groupby(dataframe):
      """Test output on a grouped object"""
      expected = (
          dataframe.select_dtypes("number")
          .groupby(dataframe["a"])
          .sum()
      )
      actual = (
          dataframe.groupby("a")
          .pipe(get_columns, is_numeric_dtype)
          .sum()
      )
      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 41 for calling a global function with example usage: test_select_groupby(dataframe) without return types