def METHOD_NAME(group_metadata_item):
    try:
        processed_group_metadata_item = {
            column_name_id_map[k]: v for k, v in group_metadata_item.items()
        }
    except AttributeError:
        # TODO why are we doing this catch? is this in case group_metadata_item is None? we
        # should use an explicit None check in that case.
        processed_group_metadata_item = group_metadata_item
    return processed_group_metadata_item