code: def get_component_tabs(*apis, vdl_args, request_args):
      """
      Get component tabs in all apis, so tabs can be presented according to existed data in frontend.
      """
      all_tabs = set()
      if vdl_args.component_tabs:
          return list(vdl_args.component_tabs)
      if vdl_args.logdir:
          for api in apis:
              all_tabs.update(api("component_tabs", request_args))
              all_tabs.add("static_graph")
      else:
          return [
              "static_graph",
              "x2paddle",
              "fastdeploy_server",
              "fastdeploy_client",
          ]
      return list(all_tabs)
  
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 4 for calling a global function with example usage: get_component_tabs() and returns: list, list, list