code: def path_to_single_node_logs(nodes_log_dir, node_log_name):
      zip_ref = zipfile.ZipFile(
          nodes_log_dir + "/" + node_log_name, "r"
      )
      node_log_dir = nodes_log_dir + "/" + node_log_name + "_logs"
      zip_ref.extractall(node_log_dir)
      zip_ref.close()
      node_log_dir_extracted = node_log_dir
      while not contains_log_file(node_log_dir_extracted):
          node_log_dir_extracted = (
              node_log_dir_extracted
              + "/"
              + os.listdir(node_log_dir_extracted)[0]
          )
      return node_log_dir_extracted
  
file_path: h2o-3/h2o-hadoop-common/tests_multinode/python/pyunit_download_logs.py
imports: import sys
  import os
  from tests import pyunit_utils
  import h2o
  import zipfile
  import shutil
label_desc: Use image node_id 4 for calling a global function with example usage: path_to_single_node_logs(nodes_log_dir, node_log_name) and returns: node_log_dir_extracted