code: def test_generate_report(test_name):
      os.makedirs("./logs_dir/", exist_ok=True)
      tmp = tempfile.NamedTemporaryFile(
          mode="w", delete=False, suffix=".log", dir="./logs_dir/"
      )
      tmp.write(final_dict[test_name]["logs"])
      filename = Path(tmp.name).name
      # print(final_dict[test_name]["logs"])
      print("Log path: {}".format(prefix + filename))
  
      if final_dict[test_name]["status"] == JobStatus.FAIL:
          pytest.fail(
              "Test failed. Please see the log at {}".format(
                  prefix + filename
              )
          )
      elif final_dict[test_name]["status"] == JobStatus.SKIP:
          pytest.skip(
              "Test skipped. Please see the log at {}".format(
                  prefix + filename
              )
          )
  
file_path: dgl/tests/scripts/ci_report/report.py
imports: import enum
  import json
  import os
  import tempfile
  from pathlib import Path
  from urllib.parse import urljoin, urlparse
  import pytest
  import requests
label_desc: Use image node_id 3 for calling a global function with example usage: test_generate_report(test_name) without return types