def is_fully_regular(layout):
    if (isinstance(layout, ak.layout.RegularArray) and (layout.parameter('__record__') is None) and (layout.parameter('__array__') is None)):
        if isinstance(layout.content, ak.layout.NumpyArray):
            return True
        elif isinstance(layout.content, ak.layout.RegularArray):
            return is_fully_regular(layout.content)
        else:
            return False
    else:
        return False
def is_fully_regular(layout):
    if (isinstance(layout, ak.layout.RegularArray) and (layout.parameter('__record__') is None) and (layout.parameter('__array__') is None)):
        if isinstance(layout.content, ak.layout.NumpyArray):
            return True
        elif isinstance(layout.content, ak.layout.RegularArray):
            return is_fully_regular(layout.content)
        else:
            return False
    else:
        return False