code: def export_file_csv():
      """
      Python API test: h2o.export_file(frame, path, force=False, parts=1).  Note that force=True is only honored if
      parts=1.  Otherwise, an error will be thrown.
      """
      training_data = h2o.import_file(
          pu.locate("smalldata/logreg/benign.csv")
      )
      try:
          results_dir = pu.locate(
              "results"
          )  # find directory path to results folder
          final_path = os.path.join(results_dir, "frameData")
          h2o.export_file(
              training_data, final_path, force=True, parts=1
          )  # save data
          assert os.path.isfile(
              final_path
          ), "h2o.export_file() command is not working."
          final_dir_path = os.path.join(results_dir, "multiFrame")
          h2o.export_file(
              training_data, final_dir_path, force=True, parts=-1
          )
          assert (
              len(os.listdir(final_dir_path)) > 0
          ), "h2o.export_file() command is not working."
      except Exception as e:
          if (
              e.__class__.__name__ == "ValueError"
              and "File not found" in e.args[0]
          ):
              print(
                  "Directory is not writable.  h2o.export_file() command is not tested."
              )
          else:
              assert (
                  e.__class__.__name__ == "H2OResponseError"
                  and "exportFrame: Cannot use path"
                  in e.args[0]._props["dev_msg"]
              ), "h2o.export_file() command is not working."
              print(
                  "Directory: {0} is not empty.  Delete or empy it before re-run.  h2o.export_file() "
                  "is not tested with multi-part export.".format(
                      final_dir_path
                  )
              )
  
imports: import os
  import shutil
  import sys
  from tests import pyunit_utils
  import h2o
label_desc: Use image node_id 1 for calling a global function with example usage: export_file_csv() without return types