code: def test_errors(self):
      with self.assertRaises(TypeError):
          HMCda(model=self.test_model, grad_log_pdf=1)
      with self.assertRaises(TypeError):
          HMCda(
              model=self.test_model,
              grad_log_pdf=GradLogPDFGaussian,
              simulate_dynamics=1,
          )
      with self.assertRaises(ValueError):
          HMCda(model=self.test_model, delta=-1)
      with self.assertRaises(TypeError):
          self.hmc_sampler.sample(
              initial_pos=1,
              num_adapt=1,
              num_samples=1,
              trajectory_length=1,
          )
      with self.assertRaises(TypeError):
          self.hmc_sampler.generate_sample(1, 1, 1, 1).send(None)
      with self.assertRaises(TypeError):
          HMC(model=self.test_model).sample(
              initial_pos=1, num_samples=1, trajectory_length=1
          )
      with self.assertRaises(TypeError):
          HMC(model=self.test_model).generate_sample(1, 1, 1).send(None)
  
imports: import sys
  import unittest
  import numpy
  from pgmpy.factors.distributions import GaussianDistribution
  from pgmpy.sampling import HamiltonianMC, HamiltonianMCDA, GradLogPDFGaussian, NoUTurnSampler, NoUTurnSamplerDA
label_desc: Use image node_id 2 for calling the TestHMCInference obj's underlying member method code with example usage: obj.test_errors() without return types