def METHOD_NAME(new_row_type, uid_field_name, drop_uid=True):
    import hail.ir.ir as ir
    new_row = ir.Ref('va', new_row_type)
    if uid_field_name in new_row_type.fields:
        uid = ir.GetField(new_row, uid_field_name)
    else:
        uid = ir.NA(tint64)
    if drop_uid:
        new_row = ir.SelectFields(new_row, [field for field in new_row_type.fields if not field == uid_field_name])
    return uid, new_row