def _add_sophisticated_name(dynamic_frame: DynamicFrame) -> DynamicFrame:
    def sophisticated_name_record_adder(record):
        record['sophisticated_name'] = f'Sir {record["best_name"].title()} III'
        return record

    return dynamic_frame.map(f=sophisticated_name_record_adder)
def _enhance_bark_strength(dynamic_frame: DynamicFrame) -> DynamicFrame:
    def bark_strength_record_enhancer(record):
        record['bark_strength'] = int(record['bark_strength']) + 2
        return record

    return dynamic_frame.map(f=bark_strength_record_enhancer)