parameters: (self, qmp_cmd)
return_statement: return resp
docstring: Send a QMP command to the QMP Monitor.
  
          @param qmp_cmd: QMP command to be sent as a Python dict
          @return QMP response as a Python dict or None if the connection has
                  been closed
docstring_summary: Send a QMP command to the QMP Monitor.
docstring_tokens: Send a QMP command to the QMP Monitor .
function: def cmd_obj(self, qmp_cmd):
          """
          Send a QMP command to the QMP Monitor.
  
          @param qmp_cmd: QMP command to be sent as a Python dict
          @return QMP response as a Python dict or None if the connection has
                  been closed
          """
          if self._debug:
              print("QMP:>>> %s" % qmp_cmd, file=sys.stderr)
          try:
              self.__sock.sendall(json.dumps(qmp_cmd))
          except socket.error as err:
              if err[0] == errno.EPIPE:
                  return
              raise socket.error(err)
          resp = self.__json_read()
          if self._debug:
              print("QMP:<<< %s" % resp, file=sys.stderr)
          return resp
function_tokens: def cmd_obj ( self , qmp_cmd ) : if self . _debug : print ( "QMP:>>> %s" % qmp_cmd , file = sys . stderr ) try : self . __sock . sendall ( json . dumps ( qmp_cmd ) ) except socket . error as err : if err [ 0 ] == errno . EPIPE : return raise socket . error ( err ) resp = self . __json_read ( ) if self . _debug : print ( "QMP:<<< %s" % resp , file = sys . stderr ) return resp