I would pass label=label where 'label' is defined locally in the loop via a lookup in event_id if it is a dict.