def METHOD_NAME(input, **kwargs):
    nonlocal result
    if input.is_record:
        result = True
        return input
    elif input.is_union:
        result = all(purelist_is_record(x) for x in input.contents)
        return input
    else:
        return None