code: def test_inherit_active_dims(self):
      lengthscales = torch.tensor([1, 1], dtype=torch.float)
      base_kernel = RBFKernel(active_dims=(1, 2), ard_num_dims=2)
      base_kernel.initialize(lengthscale=lengthscales)
      kernel = ScaleKernel(base_kernel)
      kernel.initialize(
          outputscale=torch.tensor([3], dtype=torch.float)
      )
      kernel.eval()
      self.assertTrue(
          torch.all(kernel.active_dims == base_kernel.active_dims)
      )
  
imports: import pickle
  import unittest
  import torch
  from gpytorch.kernels import LinearKernel, RBFKernel, ScaleKernel
  from gpytorch.priors import NormalPrior
  from gpytorch.test.base_kernel_test_case import BaseKernelTestCase
label_desc: Use image node_id 9 for calling the TestScaleKernel obj's underlying member method code with example usage: obj.test_inherit_active_dims() without return types