def country_code_for_valid_region(region_code):
    metadata = PhoneMetadata.metadata_for_region(region_code.upper(), None)
    if metadata is None:
        raise Exception("Invalid region code %s" % region_code)
    return metadata.country_code
Return the value to use when the specified columns are dragged or
dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py/country_code_for_valid_region--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/grid/composite_grid_model.py/CompositeGridModel.get_cols_drag_value