def METHOD_NAME(self):
    # Test with int value n cross validations (to_rest_obj)
    rest_objs = [
        self.get_job_rest_object(2, self.JOBS[0]),
        self.get_job_rest_object(2, self.JOBS[1]),
        self.get_job_rest_object(2, self.JOBS[2]),
    ]
    for obj in rest_objs:
        assert isinstance(
            obj.properties.task_details.n_cross_validations, CustomNCrossValidations
        ), "N cross validations not an object of CustomNCrossValidations in {} job".format(
            obj.properties.task_details.task_type
        )