<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def addBeam(beamState, labeling):
 """ add beam if it does not yet exist """

    if labeling not in beamState.entries:
        beamState.entries[labeling] = BeamEntry()