def METHOD_NAME(spec):
    if "filename" in spec:
        return WB(
            get(spec, "filename"),
            list(map(parse_sheet, get(spec, "sheets"))),
            get(spec, "title_row"),
        )
    else:
        print("unhandled")
        print(spec)