def _can_be_internationally_dialled(numobj):
 metadata = PhoneMetadata.metadata_for_region(region_code_for_number(numobj), None)
 if (metadata is None):
  return True
 nsn = national_significant_number(numobj)
 return (not _is_number_matching_desc(nsn, metadata.no_international_dialling))

def _can_be_internationally_dialled ( numobj ) : metadata = PhoneMetadata . metadata_for_region ( region_code_for_number ( numobj ) , None ) if ( metadata is None ) : return True nsn = national_significant_number ( numobj ) return ( not _is_number_matching_desc ( nsn , metadata . no_international_dialling ) )
returns true if the number can only be dialled from outside the region .