code: func GetNumberType(number *PhoneNumber) PhoneNumberType {
  	var regionCode string = GetRegionCodeForNumber(number)
  	var metadata *PhoneMetadata = getMetadataForRegionOrCallingCode(
  		int(number.GetCountryCode()), regionCode)
  	if metadata == nil {
  		return UNKNOWN
  	}
  	var nationalSignificantNumber = GetNationalSignificantNumber(number)
  	return getNumberTypeHelper(nationalSignificantNumber, metadata)
  }
docs: // Gets the type of a phone number.