def test_from_mdp_params_variable_finite(self):
    for mdp_gen_params in self.mdp_gen_params_lst:
        ae = AgentEvaluator.from_mdp_params_finite(mdp_params=mdp_gen_params, env_params={'horizon': 400, 'num_mdp': 2}, outer_shape=self.outer_shape)
        mdp_0 = ae.env.mdp.copy()
        seen = [mdp_0]
        for _ in range(20):
            ae.env.reset(regen_mdp=True)
            mdp_i = ae.env.mdp
            if (len(seen) == 1):
                if (mdp_i != seen[0]):
                    seen.append(mdp_i.copy())
            elif (len(seen) == 2):
                (mdp_0, mdp_1) = seen
                self.assertTrue(((mdp_i == mdp_0) or (mdp_i == mdp_1)), 'more than 2 mdp was created, the function failed to perform')
            else:
                self.assertTrue(False, 'theoretically unreachable statement')
def test_from_mdp_params_variable_finite(self):
    for mdp_gen_params in self.mdp_gen_params_lst:
        ae = AgentEvaluator.from_mdp_params_finite(mdp_params=mdp_gen_params, env_params={'horizon': 400, 'num_mdp': 2}, outer_shape=self.outer_shape)
        mdp_0 = ae.env.mdp.copy()
        seen = [mdp_0]
        for _ in range(20):
            ae.env.reset(regen_mdp=True)
            mdp_i = ae.env.mdp
            if (len(seen) == 1):
                if (mdp_i != seen[0]):
                    seen.append(mdp_i.copy())
            elif (len(seen) == 2):
                (mdp_0, mdp_1) = seen
                self.assertTrue(((mdp_i == mdp_0) or (mdp_i == mdp_1)), 'more than 2 mdp was created, the function failed to perform')
            else:
                self.assertTrue(False, 'theoretically unreachable statement')