def _parse_cc(text):
    if not text:
        return None
    else:
        m = re.match(r'(\d+)\.(\d+)', text)
        if not m:
            raise ValueError("NUMBA_FORCE_CUDA_CC must be specified as a "
                             "string of \"major.minor\" where major "
                             "and minor are decimals")
        grp = m.groups()
        return int(grp[0]), int(grp[1])
Tests to ensure a for loop within a function gets converted as expected
dataset/ETHPy150Open numba/numba/numba/config.py/_parse_cc--crossover with--dataset/ETHPy150Open timothycrosley/jiphy/test_jiphy.py/test_for_loop_in_function_conversion