code: def tearDown(self):
      del self.sampling_inference
      del self.bayesian_model
      del self.markov_model
  
imports: import unittest
  import numpy
  from mock import MagicMock, patch
  from pgmpy.factors.discrete import DiscreteFactor, State, TabularCPD
  from pgmpy.inference import VariableElimination
  from pgmpy.models import BayesianNetwork, MarkovNetwork
  from pgmpy.sampling import BayesianModelSampling, GibbsSampling
  from pgmpy.sampling.base import BayesianModelInference
label_desc: Use image node_id 8 for calling the TestBayesianModelSampling obj's underlying member method code with example usage: obj.tearDown() without return types