code: def hadoop_download_logs():
      zip_file = h2o.download_all_logs()
      extracted_dir = os.path.abspath("extracted")
      print("Logs extracted into: " + extracted_dir)
      if os.path.isdir(extracted_dir):
          shutil.rmtree(extracted_dir)
      zip_ref = zipfile.ZipFile(zip_file, "r")
      zip_ref.extractall(extracted_dir)
      zip_ref.close()
      nodes_log_dir = extracted_dir + "/" + os.listdir(extracted_dir)[0]
      nodes_log_file_names = os.listdir(nodes_log_dir)
  
      for f in expected_log_files(
          nodes_log_dir, nodes_log_file_names, "INFO"
      ):
          print("Checking if file " + f + " exists")
          # check that all expected files exist
          assert os.path.isfile(f)
  
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 6 for calling a global function with example usage: hadoop_download_logs() without return types