code: def show():
      res = []
      for r, ds, fs in os.walk(fdir):
          for f in fs:
              if "logs" in f:
                  data, algo = eval(os.path.splitext(f)[0])
                  with open(os.path.join(r, f)) as file:
                      metric = float(file.read())
                  res.append([data, algo, metric])
      df = pd.DataFrame(res, columns="data algo v".split()).pivot_table(
          values="v", index="algo", columns="data"
      )
      print(df.to_string())
      df.to_csv(os.path.join(fdir, "results.csv"))
  
file_path: AutoGL/test/nas/bench_mp.py
imports: import torch.multiprocessing
  from queue import Queue
  import time
  import random
  import os
  import pandas
label_desc: Use image node_id 6 for calling a global function with example usage: show() without return types