#NEWLINE# def _example_short_number_for_cost( region_code , cost ) : #NEWLINE# #INDENT# 'Gets a valid short number for the specified cost category.\n\n    Arguments:\n    region_code -- the region for which an example short number is needed.\n    cost -- the cost category of number that is needed.\n\n    Returns a valid short number for the specified region and cost\n    category. Returns an empty string when the metadata does not contain such\n    information, or the cost is UNKNOWN_COST.\n    ' #NEWLINE# metadata = PhoneMetadata . short_metadata_for_region ( region_code ) #NEWLINE# if ( metadata is None ) : #NEWLINE# #INDENT# return U_EMPTY_STRING #NEWLINE# #UNINDENT# desc = None #NEWLINE# if ( cost == ShortNumberCost . TOLL_FREE ) : #NEWLINE# #INDENT# desc = metadata . toll_free #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( cost == ShortNumberCost . STANDARD_RATE ) : #NEWLINE# #INDENT# desc = metadata . standard_rate #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( cost == ShortNumberCost . PREMIUM_RATE ) : #NEWLINE# #INDENT# desc = metadata . premium_rate #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( ( desc is not None ) and ( desc . example_number is not None ) ) : #NEWLINE# #INDENT# return desc . example_number #NEWLINE# #UNINDENT# return U_EMPTY_STRING