code: func IsValidNumber(number *PhoneNumber) bool {
  	var regionCode string = GetRegionCodeForNumber(number)
  	return IsValidNumberForRegion(number, regionCode)
  }
docs: // Tests whether a phone number matches a valid pattern. Note this doesn't
  // verify the number is actually in use, which is impossible to tell by
  // just looking at a number itself.