def METHOD_NAME(self):
    infer_bayesian = Inference(self.bayesian)
    infer_bayesian._initialize_structures()
    self.assertEqual(set(infer_bayesian.variables), {"a", "b", "c", "d", "e"})
    self.assertEqual(
        infer_bayesian.cardinality, {"a": 2, "b": 2, "c": 2, "d": 2, "e": 2}
    )
    self.assertIsInstance(infer_bayesian.factors, defaultdict)
    self.assertEqual(
        set(infer_bayesian.factors["a"]),
        set(
            [
                self.bayesian.get_cpds("a").to_factor(),
                self.bayesian.get_cpds("b").to_factor(),
            ]
        ),
    )
    self.assertEqual(
        set(infer_bayesian.factors["b"]),
        set(
            [
                self.bayesian.get_cpds("b").to_factor(),
                self.bayesian.get_cpds("c").to_factor(),
            ]
        ),
    )
    self.assertEqual(
        set(infer_bayesian.factors["c"]),
        set(
            [
                self.bayesian.get_cpds("c").to_factor(),
                self.bayesian.get_cpds("d").to_factor(),
            ]
        ),
    )
    self.assertEqual(
        set(infer_bayesian.factors["d"]),
        set(
            [
                self.bayesian.get_cpds("d").to_factor(),
                self.bayesian.get_cpds("e").to_factor(),
            ]
        ),
    )
    self.assertEqual(
        set(infer_bayesian.factors["e"]),
        set([self.bayesian.get_cpds("e").to_factor()]),
    )