def derive_fabs_unique_award_key(row):
    """ Derives the unique award key for a row.

        Args:
            row: the dataframe row to derive the unique award key for

        Returns:
            A unique award key for the row, generated based on record type and uppercased
    """
    if str(row['record_type']) == '1':
        unique_award_key_list = ['ASST_AGG', row['uri'] or '-none-']
    else:
        unique_award_key_list = ['ASST_NON', row['fain'] or '-none-']

    unique_award_key_list.append(row['awarding_sub_tier_agency_c'] or '-none-')

    return '_'.join(unique_award_key_list).upper()