<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_or_create_candidate_election( self, row, election, candidate, party ):
 """ For a given election, this function updates or creates the CandidateElection object using the model method on the election. """

        return election.update_or_create_candidate(
            candidate, party.aggregate_candidates, row["uncontested"]
        )