def METHOD_NAME(self):
    with self.assertRaises(ValueError):
        _ = ElementStats(element_properties={"H": [1, 2], "O": [1, 2, 3]}, stats=["mean"])
    with self.assertRaises(ValueError):
        _ = ElementStats(element_properties={"H": [1, 2], "O": [1, 2]}, stats=["mean"], property_names=["p1"])
    with self.assertRaises(ValueError):
        _ = ElementStats(
            element_properties={"H": [1, 2], "O": [1, 2]}, stats=["super_std"], property_names=["p1", "p2"]
        )
    with self.assertRaises(ValueError):
        _ = ElementStats(
            element_properties={"H": [1, 2], "O": [1, 2]}, stats=["super_std:-1"], property_names=["p1", "p2"]
        )
    with self.assertRaises(ValueError):
        ElementStats.from_file(os.path.join(CWD, "test_data/wrong_dummy_property.json"), stats=["max"])
    with self.assertRaises(ValueError):
        ElementStats.from_data("megnet_22", stats=["max"])