code: def gen_result(data=None, status=0, msg=""):
      return {"status": status, "msg": msg, "data": data}
  
imports: import functools
  import gzip
  import json
  import os
  from io import BytesIO
  from flask import request
  from visualdl import LogReader
  from visualdl.python.cache import MemCache
  from visualdl.reader.graph_reader import GraphReader
  from visualdl.server import lib
  from visualdl.server.client_manager import ClientManager
  from visualdl.server.log import logger
label_desc: Use image node_id 1 for calling a global function with example usage: gen_result(data, status, msg) and returns: dict