code: def test_bking1d():
      # Test Baxter King band-pass filter. Results are taken from Stata
      bking_results = array(
          [
              7.320813,
              2.886914,
              -6.818976,
              -13.49436,
              -13.27936,
              -9.405913,
              -5.691091,
              -5.133076,
              -7.273468,
              -9.243364,
              -8.482916,
              -4.447764,
              2.406559,
              10.68433,
              19.46414,
              28.09749,
              34.11066,
              33.48468,
              24.64598,
              9.952399,
              -4.265528,
              -12.59471,
              -13.46714,
              -9.049501,
              -3.011248,
              0.5655082,
              2.897976,
              7.406077,
              14.67959,
              18.651,
              13.05891,
              -2.945415,
              -24.08659,
              -41.86147,
              -48.68383,
              -43.32689,
              -31.66654,
              -20.38356,
              -13.76411,
              -9.978693,
              -3.7704,
              10.27108,
              31.02847,
              51.87613,
              66.93117,
              73.51951,
              73.4053,
              69.17468,
              59.8543,
              38.23899,
              -0.2604809,
              -49.0107,
              -91.1128,
              -112.1574,
              -108.3227,
              -86.51453,
              -59.91258,
              -40.01185,
              -29.70265,
              -22.76396,
              -13.08037,
              1.913622,
              20.44045,
              37.32873,
              46.79802,
              51.95937,
              59.67393,
              70.50803,
              81.27311,
              83.53191,
              67.72536,
              33.78039,
              -6.509092,
              -37.31579,
              -46.05207,
              -29.81496,
              1.416417,
              28.31503,
              32.90134,
              8.949259,
              -35.41895,
              -84.65775,
              -124.4288,
              -144.6036,
              -140.2204,
              -109.2624,
              -53.6901,
              15.07415,
              74.44268,
              104.0403,
              101.0725,
              76.58291,
              49.27925,
              36.15751,
              36.48799,
              37.60897,
              27.75998,
              4.216643,
              -23.20579,
              -39.33292,
              -36.6134,
              -20.90161,
              -4.143123,
              5.48432,
              9.270075,
              13.69573,
              22.16675,
              33.01987,
              41.93186,
              47.12222,
              48.62164,
              47.30701,
              40.20537,
              22.37898,
              -7.133002,
              -43.3339,
              -78.51229,
              -101.3684,
              -105.2179,
              -90.97147,
              -68.30824,
              -48.10113,
              -35.60709,
              -31.15775,
              -31.82346,
              -32.49278,
              -28.22499,
              -14.42852,
              10.1827,
              36.64189,
              49.43468,
              38.75517,
              6.447761,
              -33.15883,
              -62.60446,
              -72.87829,
              -66.54629,
              -52.61205,
              -38.06676,
              -26.19963,
              -16.51492,
              -7.007577,
              0.6125674,
              7.866972,
              14.8123,
              22.52388,
              30.65265,
              39.47801,
              49.05027,
              59.02925,
              72.88999,
              95.08865,
              125.8983,
              154.4283,
              160.7638,
              130.6092,
              67.84406,
              -7.070272,
              -68.08128,
              -99.39944,
              -104.911,
              -100.2372,
              -98.11596,
              -104.2051,
              -114.0125,
              -113.3475,
              -92.98669,
              -51.91707,
              -0.7313812,
              43.22938,
              64.62762,
              64.07226,
              59.35707,
              67.06026,
              91.87247,
              124.4591,
              151.2402,
              163.0648,
              154.6432,
          ]
      )
      X = macrodata.load_pandas().data["realinv"].values
      Y = bkfilter(X, 6, 32, 12)
      assert_almost_equal(Y, bking_results, 4)
  
imports: from statsmodels.compat.pandas import QUARTER_END, assert_frame_equal, make_dataframe
  from datetime import datetime
  import numpy
  from numpy import array, column_stack
  from numpy.testing import assert_, assert_allclose, assert_almost_equal, assert_equal, assert_raises
  from pandas import DataFrame, concat, date_range
  from statsmodels.datasets import macrodata
  from statsmodels.tsa.filters._utils import pandas_wrapper
  from statsmodels.tsa.filters.bk_filter import bkfilter
  from statsmodels.tsa.filters.cf_filter import cffilter
  from statsmodels.tsa.filters.filtertools import convolution_filter, recursive_filter
  from statsmodels.tsa.filters.hp_filter import hpfilter
label_desc: Use image node_id 1 for calling a global function with example usage: test_bking1d() without return types