code: def test_agg_raises():
      # GH 26513
      df = DataFrame({"A": [0, 1], "B": [1, 2]})
      msg = "Must provide"
  
      with pytest.raises(TypeError, match=msg):
          df.agg()
  
imports: from itertools import chain
  import re
  import numpy
  import pytest
  from pandas.errors import SpecificationError
  from pandas import DataFrame, Series, date_range
  import pandas._testing
label_desc: Use image node_id 3 for calling a global function with example usage: test_agg_raises() without return types