print(f"Checking step {step} against expected {i}")
iftest_type==TypeOfTest.APPROX:
assertactual_list[step]==pytest.approx(expected=expected_list[i],rel=self.margin_loss),f"{self.job_name} : The loss at step {step} should be approximately {expected_list[i]} but it is {actual_list[step]}."