code: def h2odownload_all_logs():
      """
      Python API test: h2o.download_all_logs(dirname=u'.', filename=None)
      """
      training_data = h2o.import_file(
          pyunit_utils.locate("smalldata/logreg/benign.csv")
      )
      Y = 3
      X = [0, 1, 2, 4, 5, 6, 7, 8, 9, 10]
  
      model = H2OGeneralizedLinearEstimator(
          family="binomial", alpha=0, Lambda=1e-5
      )
      model.train(x=X, y=Y, training_frame=training_data)
      try:
          results_dir = pyunit_utils.locate(
              "results"
          )  # find directory path to results folder
          filename = "logs.csv"
          dir_path = h2o.download_all_logs(
              results_dir, filename
          )  # save logs csv
          full_path_filename = os.path.join(results_dir, filename)
          assert (
              dir_path == full_path_filename
          ), "h2o.download_all_logs() command is not working."
          assert os.path.isfile(
              full_path_filename
          ), "h2o.download_all_logs() command is not working."
      except Exception as e:
          if "File not found" in e.args[0]:
              print(
                  "Directory is not writable.  h2o.download_all_logs() command is not tested."
              )
          else:
              assert (
                  False
              ), "h2o.download_all_logs() command is not working."
  
imports: import sys, os
  from tests import pyunit_utils
  import h2o
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator
label_desc: Use image node_id 1 for calling a global function with example usage: h2odownload_all_logs() without return types