code: def test_resample_should_raise_ex():
      with pytest.raises(InvalidPostProcessingError):
          pp.resample(
              df=categories_df,
              rule="1D",
              method="asfreq",
          )
  
      with pytest.raises(InvalidPostProcessingError):
          pp.resample(
              df=timeseries_df,
              rule="1D",
              method="foobar",
          )
  
file_path: superset/tests/unit_tests/pandas_postprocessing/test_resample.py
imports: import numpy
  import pandas
  import pytest
  from pandas import to_datetime
  from superset.exceptions import InvalidPostProcessingError
  from superset.utils import pandas_postprocessing
  from tests.unit_tests.fixtures.dataframes import categories_df, timeseries_df
label_desc: Use image node_id 5 for calling a global function with example usage: test_resample_should_raise_ex() without return types