def get_object_references(turn_label, reversed_dialog_coref_map):
    """From turn label data extract local object references associated with
    each action and also resolve them to global furniture_ids

    Args:
        turn_labels: action, object, slot annotations for this turn
        reversed_dialog_coref_map: maps per dialog object ids to furniture id

    Returns:
        dictionary index by actions containing a list of tuples of the format
        (local id, global furniture_id)
    """
    action_refs = {}
    for action_obj_slot in turn_label:
        action = action_obj_slot['act']
        local_ids = [ii['obj_idx'] for ii in action_obj_slot['objects']]
        action_refs[action] = [
            (ii, reversed_dialog_coref_map[ii]) for ii in local_ids
        ]
    return action_refs