class_docstr: A ZMQ socket in a simple blocking API
docstr: Gets a message if there is one that is ready. 
docstr_tok: ["Gets","a","message","if","there","is","one","that","is","ready","."]
code: def get_msg(self, block=True, timeout=None):
      """Gets a message if there is one that is ready."""
      if block:
          if timeout is not None:
              timeout *= 1000  # seconds to ms
          ready = self.socket.poll(timeout)
      else:
          ready = self.socket.poll(timeout=0)
  
      if ready:
          return self._recv()
      else:
          raise Empty
  
file_path: catboost/contrib/python/jupyter-client/py2/jupyter_client/blocking/channels.py
label_desc: Use image node_id 3 for calling the ZMQSocketChannel obj's underlying member method code with example usage: obj.get_msg(block, timeout) and returns: self