docstr: Raising TypeError if prior type is other than gpytorch.priors.Prior
docstr_tok: ["Raising","TypeError","if","prior","type","is","other","than","gpytorch.priors.Prior"]
code: def test_prior_type(self):
      """
      Raising TypeError if prior type is other than gpytorch.priors.Prior
      """
      self.create_kernel_with_prior(None)
      self.create_kernel_with_prior(NormalPrior(0, 1))
      self.assertRaises(TypeError, self.create_kernel_with_prior, 1)
  
file_path: gpytorch/test/kernels/test_linear_kernel.py
imports: import unittest
  import torch
  from gpytorch.kernels import LinearKernel
  from gpytorch.priors import NormalPrior
  from gpytorch.test.base_kernel_test_case import BaseKernelTestCase
label_desc: Use image node_id 6 for calling the TestLinearKernel obj's underlying member method code with example usage: obj.test_prior_type() without return types