code: def get_logs(log_reader, component):
      all_tag = log_reader.data_manager.get_reservoir(component).keys
      tags = {}
      for item in all_tag:
          index = item.rfind("/")
          run = item[0:index]
          tag = encode_tag(item[index + 1 :])
          if run in tags.keys():
              tags[run].append(tag)
          else:
              tags[run] = [tag]
          if run not in log_reader.tags2name.keys():
              log_reader.tags2name[run] = run
              log_reader.name2tags[run] = run
      fake_tags = {}
      for key, value in tags.items():
          if key in log_reader.tags2name:
              fake_tags[log_reader.tags2name[key]] = value
          else:
              fake_tags[key] = value
  
      run2tag = {"runs": [], "tags": []}
      for run, tags in fake_tags.items():
          run2tag["runs"].append(run)
          run2tag["tags"].append(tags)
  
      run_prefix = os.getenv("VISUALDL_RUN_PREFIX")
      global MODIFY_PREFIX, MODIFIED_RUNS
      if component not in MODIFY_PREFIX:
          MODIFY_PREFIX.update({component: False})
      if run_prefix and not MODIFY_PREFIX[component]:
          MODIFY_PREFIX[component] = True
          temp_name2tags = log_reader.name2tags.copy()
          for key, value in temp_name2tags.items():
              if key in MODIFIED_RUNS:
                  continue
              index = key.find(run_prefix)
              if index != -1:
                  temp_key = key[index + len(run_prefix) :]
  
                  log_reader.name2tags.pop(key)
                  log_reader.name2tags.update({temp_key: value})
  
                  log_reader.tags2name.pop(value)
                  log_reader.tags2name.update({value: temp_key})
  
                  run2tag["runs"][run2tag["runs"].index(key)] = temp_key
              else:
                  temp_key = key
  
              MODIFIED_RUNS.append(temp_key)
  
      return run2tag
  
imports: import csv
  import io
  import math
  import os
  import sys
  import time
  from functools import partial
  import numpy
  from visualdl.component import components
  from visualdl.io import bfile
  from visualdl.server.log import logger
  from visualdl.utils.importance import calc_all_hyper_param_importance
  from visualdl.utils.list_util import duplicate_removal
  from visualdl.utils.string_util import decode_tag
  from visualdl.utils.string_util import encode_tag
label_desc: Use image node_id 7 for calling a global function with example usage: get_logs(log_reader, component) and returns: run2tag