def process_row(bq_row):
    """
    Convert bq_row into dictionary and replace identifiers to nominal values

    Args:
        bq_row: BigQuery row

    Returns:
         dictionary

    """

    # modify opaque numeric race code into human-readable data
    races = dict(
        zip([1, 2, 3, 4, 5, 6, 7, 18, 28, 39, 48], [
            'White', 'Black', 'American Indian', 'Chinese', 'Japanese',
            'Hawaiian', 'Filipino', 'Asian bq_row', 'Korean', 'Samaon',
            'Vietnamese'
        ]))
    instance = dict()

    instance['is_male'] = str(bq_row['is_male'])
    instance['mother_age'] = bq_row['mother_age']

    if 'mother_race' in bq_row and bq_row['mother_race'] in races:
        instance['mother_race'] = races[bq_row['mother_race']]
    else:
        instance['mother_race'] = 'Unknown'

    instance['plurality'] = bq_row['plurality']
    instance['gestation_weeks'] = bq_row['gestation_weeks']
    instance['mother_married'] = str(bq_row['mother_married'])
    instance['cigarette_use'] = str(bq_row['cigarette_use'])
    instance['alcohol_use'] = str(bq_row['alcohol_use'])
    instance['weight_pounds'] = str(bq_row['weight_pounds'])

    return instance