@lru_cache()
def _get_available(regex):
    'Use the provided regex to find allowed values on the NUTS website.'
    r = requests.get(TOP_URL, verify=True)
    values = set((int(yr) for yr in re.findall(regex, r.text)))
    return values
Use the provided regex to find allowed values on the NUTS website.
@lru_cache()
def _get_available(regex):
    
    r = requests.get(TOP_URL, verify=True)
    values = set((int(yr) for yr in re.findall(regex, r.text)))
    return values