def METHOD_NAME(chunk):
    op_type = type(chunk.op)
    if op_type in NE_UNARYOP_TO_STRING:
        return _handle_unary(chunk)
    elif op_type in NE_BINOP_TO_STRING:
        return _handle_bin(chunk)
    elif op_type in NE_TREE_OP_TO_STRING:
        return _handle_tree(chunk)
    elif op_type in NE_REDUCTION_TO_STRING:
        return _handle_reduction(chunk)
    elif op_type is TensorNeFuseChunk:
        return _decompose(chunk)
    else:
        raise TypeError(f"unsupported operator in numexpr: {op_type.__name__}")