code: def check_baselines(results):
      import requests
      import pytest
      from tempfile import TemporaryDirectory
  
      def download_log(url, save_dir):
          if not os.path.exists(save_dir):
              os.mkdir(save_dir)
          filepath = os.path.join(save_dir, url.split("/")[-1])
  
          r = requests.get(url)
          if r.ok:
              with open(filepath, mode="wb") as f:
                  f.write(r.content)
          else:
              print(
                  f"WARNING: Unable to download file at {url}. Received status {r.status_code}"
              )
  
      with TemporaryDirectory() as tmpdir:
          # Download TB event logs
          for result in results:
              event_log_url = select_asset(
                  result["nested_assets"], "events.out.tfevents"
              )
              target_dir = result["obj_workload"]["s_key"].lstrip(
                  "recipe/"
              )
              target_dir = os.path.join(tmpdir, target_dir)
              download_log(event_log_url, target_dir)
  
          # Run pytest on logs
          os.environ[
              "EXPECTED_METRICS_DIR"
          ] = "tests/functional_tests/test_results/jet"
          os.environ["LOGS_DIR"] = tmpdir
          sys.exit(
              pytest.main(
                  [
                      "tests/functional_tests/python_test_utils/multitest_ci_pipeline.py::TestBulkCIPipeline"
                  ]
              )
          )
  
file_path: megatron-lm/tests/functional_tests/python_test_utils/jet_test_pipeline.py
imports: import argparse
  import os
  import sys
  from jet.utils.instance import JETInstance
  from jet.logs.queries import JETLogsQuery, Field
label_desc: Use image node_id 4 for calling a global function with example usage: check_baselines(results) without return types