docstr: Get all messages that are currently ready. 
docstr_tok: ["Get","all","messages","that","are","currently","ready","."]
code: def get_msgs(self):
      """Get all messages that are currently ready."""
      msgs = []
      while True:
          try:
              msgs.append(self.get_msg(block=False))
          except Empty:
              break
      return msgs
  
file_path: catboost/contrib/python/ipykernel/py2/ipykernel/inprocess/blocking.py
imports: from IPython.utils.io import raw_print
  from traitlets import Type
  from .channels import InProcessChannel
  from .client import InProcessKernelClient
label_desc: Use image node_id 4 for calling the BlockingInProcessChannel obj's underlying member method code with example usage: obj.get_msgs() and returns: msgs