def generate_doc(handler_cls):
    """
    Returns a `HandlerDocumentation` object
    for the given handler. Use this to generate
    documentation for your API.
    """
    if not (type(handler_cls) is ObjectHandlerMetaClass
            or type(handler_cls) is handler.HandlerMetaClass):
        raise ValueError(type(handler_cls) % "Give me handler, not %s")

    return HandlerDocumentation(handler_cls)
dataset/ETHPy150Open treeio/treeio/treeio/core/api/doc.py/generate_doc/swapped operands of `%`