code: def test_weight_len(
      data: ArrayLike, estimator: type[CovarianceEstimator]
  ):
      cov_est = estimator(data, force_int=True)
      name = estimator.__name__
      is_qs = name in ("QuadraticSpectral", "Andrews")
      if is_qs:
          exp_len = data.shape[0]
      else:
          exp_len = int(cov_est.bandwidth) + 1
      assert cov_est.kernel_weights.shape[0] == exp_len
  
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 11 for calling a global function with example usage: test_weight_len(data, estimator) without return types