code: def message_info(message):
      
      method = message.get('method')
      msgid = message.get('id')
      error = message.get('error')
      if method and msgid is not None:
          return 'method call "{}", id = "{}"'.format(method, msgid)
      elif method:
          return 'notification "{}"'.format(method)
      elif error is not None and msgid is not None:
          return 'error reply to id = "{}"'.format(msgid)
      elif error is not None:
          code = error.get('code', '(none)')
          return 'error reply: {}'.format(errorcode.get(code, code))
      else:
          return 'method return for id = "{}"'.format(msgid)
docs: Return a string describing a message, for debugging purposes.