parameters: (code)
return_statement: return vv
docstring: Checks if dialog is available for the phone, returns it and removes from the queue
      @param code: Phone code
      @type code: basestring
      @return: Dialog code in JSON-compatible object
      @rtype: dict
docstring_summary: Checks if dialog is available for the phone, returns it and removes from the queue
docstring_tokens: Checks if dialog is available for the phone returns it and removes from the queue
function: def get_dialog(code):
      """
      Checks if dialog is available for the phone, returns it and removes from the queue
      @param code: Phone code
      @type code: basestring
      @return: Dialog code in JSON-compatible object
      @rtype: dict
      """
      vv = settings.REDIS.lpop(FMT_DLG_QUEUE_NAME.format(code))
      if vv is not None:
          vv = json.loads(vv)
      return vv
function_tokens: def get_dialog ( code ) : vv = settings . REDIS . lpop ( FMT_DLG_QUEUE_NAME . format ( code ) ) if vv is not None : vv = json . loads ( vv ) return vv