def take_notification(self, block=True, timeout=None):
reply = super().take_notification(block=block, timeout=timeout)<EOL>if isinstance(reply, operations.rpc.RPCReply):<EOL><INDENT>reply.ns = self._get_ns(reply._root)<EOL><DEDENT>if getattr(transport, '<STR_LIT>', None) andisinstance(reply, transport.notify.Notification):<EOL><INDENT>reply.ns = self._get_ns(reply._root_ele)<EOL><DEDENT>return reply<EOL>
take_notification

        High-level api: Receive notification messages.

        Parameters
        ----------

        block : `bool`
            True if this is a blocking call.

        timeout : `int`
            Timeout value in seconds.

        Returns
        -------

        Notification
            An instance of Notification in ncclient package.


        Code Example::

            >>> reply = device.nc.take_notification(block=True, timeout=60)
            >>> assert(reply.ok)
            >>> print(reply)
            >>>