

def _normalize(number):
    'Normalizes a string of characters representing a phone number.\n\n    This performs the following conversions:\n     - Punctuation is stripped.\n     - For ALPHA/VANITY numbers:\n        - Letters are converted to their numeric representation on a telephone\n          keypad. The keypad used here is the one defined in ITU\n          Recommendation E.161. This is only done if there are 3 or more\n          letters in the number, to lessen the risk that such letters are\n          typos - otherwise alpha characters are stripped.\n     - For other numbers:\n        - Wide-ascii digits are converted to normal ASCII (European) digits.\n        - Arabic-Indic numerals are converted to European numerals.\n        - Spurious alpha characters are stripped.\n\n    Arguments:\n    number -- string representing a phone number\n\n    Returns the normalized string version of the phone number.\n    '
    m = fullmatch(_VALID_ALPHA_PHONE_PATTERN, number)
    if m:
        return _normalize_helper(m, _ALPHA_PHONE_MAPPINGS, True)
    else:
        return normalize_digits_only(number)

dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py _normalize/VarMisuse@29/357 `number`->`m`