code: def print_trial_job_log(training_service, trial_jobs_url):
      trial_log_root = os.path.join(
          get_experiment_dir(EXPERIMENT_URL), "trials"
      )
      if not os.path.exists(trial_log_root):
          print(
              "trial log folder does not exist: {}".format(
                  trial_log_root
              ),
              flush=True,
          )
          return
      folders = os.listdir(trial_log_root)
      for name in folders:
          trial_log_dir = os.path.join(trial_log_root, name)
          log_files = (
              ["stderr", "trial.log"]
              if training_service == "local"
              else ["stdout_log_collection.log"]
          )
          for log_file in log_files:
              log_file_path = os.path.join(trial_log_dir, log_file)
              if os.path.exists(log_file_path):
                  print_file_content(log_file_path)
  
imports: import contextlib
  import collections
  import os
  import socket
  import sys
  import subprocess
  import requests
  import time
  import yaml
  import shlex
  import warnings
label_desc: Use image node_id 16 for calling a global function with example usage: print_trial_job_log(training_service, trial_jobs_url) without return types