Replace logical operations with calls to :func:`.napi_and` or
        :func:`.napi_or`.

def visit_BoolOp(self, node):
        """Replace logical operations with calls to :func:`.napi_and` or
        :func:`.napi_or`."""

        if isinstance(node.op, And):
            func = Name(id=self._prefix + 'napi_and', ctx=Load())
        else:
            func = Name(id=self._prefix + 'napi_or', ctx=Load())
        args = [List(elts=node.values, ctx=Load())]
        node = Call(func=func, args=args, keywords=self._kwargs)
        fml(node)
        self.generic_visit(node)
        return node