def METHOD_NAME(self, phone):
    try:
        phonenumber = phonenumbers.parse(phone, "BR")
    except phonenumbers.phonenumberutil.NumberParseException as e:
        raise ValidationError(_(f"Unable to parse {phone}: {str(e)}")) from e
    if not phonenumbers.is_possible_number(phonenumber):
        raise ValidationError(
            _(f"Impossible number {phone}: probably invalid number of digits.")
        ) from None
    if not phonenumbers.is_valid_number(phonenumber):
        raise ValidationError(
            _(f"Invalid number {phone}: probably incorrect prefix.")
        ) from None
    phone = phonenumbers.format_number(
        phonenumber, phonenumbers.PhoneNumberFormat.E164
    )
    return phone