code: def contains_log_file(dir):
      for f in os.listdir(dir):
          if os.path.isfile(dir + "/" + f) and f.endswith(".log"):
              return True
      return False
  
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 5 for calling a global function with example usage: contains_log_file(dir) and returns: False, True