def infer_layout(val):
    """
    Infer layout of the given memoryview *val*.
    """
    if (3,) >= sys.version_info:
        return ('C' if val.c_contiguous else
                'F' if val.f_contiguous else
                'A')
    # Python 2: best effort heuristic for 1d arrays
    if val.ndim == 1 and val.strides[0] == val.itemsize:
        return 'C'
    return 'A'
dataset/ETHPy150Open numba/numba/numba/typing/bufproto.py/infer_layout/swapped operands of `>=`