def METHOD_NAME(self, d, mode):
    # Check polar and nonpolar relaxations
    c = d["calcs_reversed"][0]["output"]["structure"]["lattice"]["c"]
    if mode == "_polar_relaxation":
        self.assertAlmostEqual(c, 4.2157, 2)
    if mode == "_nonpolar_relaxation":
        self.assertAlmostEqual(c, 4.0350, 2)
    # Check interpolated structure
    if mode == "_interpolation_1_polarization":
        self.assertAlmostEqual(c, 4.1345, 2)
    # Check that Outcar has needed keys for polarization analysis.
    if "_polarization" in mode and "processing" not in mode:
        outcar = d["calcs_reversed"][0]["output"]["outcar"]
        self.assertIsNotNone(outcar.get("p_ion"))
        self.assertIsNotNone(outcar.get("p_elec"))
        self.assertIsNotNone(outcar.get("p_elec"))
        self.assertIsNotNone(outcar.get("zval_dict"))
    # Check analysis step.
    if mode == "_polarization_post_processing":
        self.assertAlmostEqual(d["polarization_change_norm"], 46.2887527953)