code: def test_parzen_auto(data: ArrayLike):
      pz = Parzen(data, force_int=True)
  
      if data.ndim == 1:
          # This test is noisy
          expected_bw: tuple[int, ...] = (18, 19)
          expected_weights = [
              1.0000e00,
              9.8575e-01,
              9.4600e-01,
              8.8525e-01,
              8.0800e-01,
              7.1875e-01,
              6.2200e-01,
              5.2225e-01,
              4.2400e-01,
              3.3175e-01,
              2.5000e-01,
              1.8225e-01,
              1.2800e-01,
              8.5750e-02,
              5.4000e-02,
              3.1250e-02,
              1.6000e-02,
              6.7500e-03,
              2.0000e-03,
              2.5000e-04,
          ]
      else:
          expected_bw = (17,)
          expected_weights = [
              1.00000000e00,
              9.82510288e-01,
              9.34156379e-01,
              8.61111111e-01,
              7.69547325e-01,
              6.65637860e-01,
              5.55555556e-01,
              4.45473251e-01,
              3.41563786e-01,
              2.50000000e-01,
              1.75582990e-01,
              1.17626886e-01,
              7.40740741e-02,
              4.28669410e-02,
              2.19478738e-02,
              9.25925926e-03,
              2.74348422e-03,
              3.42935528e-04,
          ]
      assert int(pz.bandwidth) in expected_bw
      if data.ndim > 1 or (pz.bandwidth + 1) == len(expected_weights):
          assert_allclose(
              pz.kernel_weights, np.array(expected_weights), rtol=1e-4
          )
  
file_path: arch/arch/tests/covariance/test_covariance.py
imports: from itertools import product
  import numpy
  from numpy.testing import assert_allclose
  import pandas
  import pytest
  from arch.covariance.kernel import Andrews, Bartlett, CovarianceEstimate, CovarianceEstimator, Gallant, NeweyWest, Parzen, ParzenCauchy, ParzenGeometric, ParzenRiesz, QuadraticSpectral, TukeyHamming, TukeyHanning, TukeyParzen
  from arch.typing import ArrayLike
label_desc: Use image node_id 6 for calling a global function with example usage: test_parzen_auto(data) without return types