def peek(self, count=<NUM_LIT:1>, start_from=None):
if not start_from:<EOL><INDENT>start_from = self.last_received or <NUM_LIT:1><EOL><DEDENT>if int(count) < <NUM_LIT:1>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if int(start_from) < <NUM_LIT:1>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self._can_run()<EOL>message = {<EOL>'<STR_LIT>': types.AMQPLong(start_from),<EOL>'<STR_LIT>': count<EOL>}<EOL>return self._mgmt_request_response(<EOL>REQUEST_RESPONSE_PEEK_OPERATION,<EOL>message,<EOL>mgmt_handlers.peek_op)<EOL>
Browse messages currently pending in the queue.

        Peeked messages are not removed from queue, nor are they locked. They cannot be completed,
        deferred or dead-lettered.

        :param count: The maximum number of messages to try and peek. The default
         value is 1.
        :type count: int
        :param start_from: A message sequence number from which to start browsing messages.
        :type start_from: int
        :rtype: list[~azure.servicebus.common.message.PeekMessage]

        Example:
            .. literalinclude:: ../examples/test_examples.py
                :start-after: [START peek_messages]
                :end-before: [END peek_messages]
                :language: python
                :dedent: 4
                :caption: Look at pending messages in the queue