docstr: Overwrite because this kernel needs to know how many dims it will be operating on.
docstr_tok: ["Overwrite","because","this","kernel","needs","to","know","how","many","dims","it","will","be","operating","on","."]
code: def test_active_dims_list(self):
      """
      Overwrite because this kernel needs to know how many dims it will be operating on.
      """
      kernel = self.create_kernel_no_ard(
          num_dims=4, active_dims=[0, 2, 4, 6]
      )
      x = self.create_data_no_batch(num_dims=10)
      covar_mat = kernel(x).evaluate_kernel().to_dense()
      kernel_basic = self.create_kernel_no_ard(num_dims=4)
      kernel_basic.Z = kernel.Z
      covar_mat_actual = (
          kernel_basic(x[:, [0, 2, 4, 6]]).evaluate_kernel().to_dense()
      )
  
      self.assertLess(
          torch.norm(covar_mat - covar_mat_actual)
          / covar_mat_actual.norm(),
          1e-4,
      )
  
file_path: gpytorch/test/kernels/test_spectral_delta_kernel.py
imports: import unittest
  import torch
  from gpytorch.kernels import SpectralDeltaKernel
  from gpytorch.test.base_kernel_test_case import BaseKernelTestCase
label_desc: Use image node_id 6 for calling the TestSpectralDeltaKernel obj's underlying member method code with example usage: obj.test_active_dims_list() without return types