def _example_short_number_for_cost(region_code, cost):
 metadata = PhoneMetadata.short_metadata_for_region(region_code)
 if (metadata is None):
  return U_EMPTY_STRING
 desc = None
 if (cost == ShortNumberCost.TOLL_FREE):
  desc = metadata.toll_free
 elif (cost == ShortNumberCost.STANDARD_RATE):
  desc = metadata.standard_rate
 elif (cost == ShortNumberCost.PREMIUM_RATE):
  desc = metadata.premium_rate
 else:
  pass
 if ((desc is not None) and (desc.example_number is not None)):
  return desc.example_number
 return U_EMPTY_STRING

def _example_short_number_for_cost ( region_code , cost ) : metadata = PhoneMetadata . short_metadata_for_region ( region_code ) if ( metadata is None ) : return U_EMPTY_STRING desc = None if ( cost == ShortNumberCost . TOLL_FREE ) : desc = metadata . toll_free elif ( cost == ShortNumberCost . STANDARD_RATE ) : desc = metadata . standard_rate elif ( cost == ShortNumberCost . PREMIUM_RATE ) : desc = metadata . premium_rate else : pass if ( ( desc is not None ) and ( desc . example_number is not None ) ) : return desc . example_number return U_EMPTY_STRING
gets a valid short number for the specified cost category .