code: def test_polars_datatable():
      file1 = "smalldata/titanic/titanic_expanded.csv"
      file2 = "smalldata/glm_test/multinomial_3Class_10KRow.csv"
      file3 = "smalldata/timeSeries/CreditCard-ts_train.csv"
  
      original_converted_frame1 = singl_thread_pandas_conversion(file1)
      original_converted_frame2 = singl_thread_pandas_conversion(file2)
      original_converted_frame3 = singl_thread_pandas_conversion(file3)
  
      if not (can_install_datatable()):
          print(
              "datatable is not available.  Skipping tests using datatable."
          )
      else:
          if not (can_use_datatable()):
              pyunit_utils.install("datatable")
  
          with local_context(
              polars_disabled=True
          ):  # run with datatable
              print("test data frame conversion using datatable.")
              test_frame_conversion(
                  file1, original_converted_frame1, "datatable"
              )
              test_frame_conversion(
                  file2, original_converted_frame2, "datatable"
              )
              test_frame_conversion(
                  file3, original_converted_frame3, "datatable"
              )
  
      if not (can_install_polars()):
          print(
              "polars, pyarrow are not available.  Skipping tests using polars and pyarrow"
          )
      else:
          if not (can_use_polars()):
              pyunit_utils.install("polars")
          if not (can_use_pyarrow()):
              pyunit_utils.install("pyarrow")
  
          with local_context(datatable_disabled=True):
              if can_use_polars() and can_use_pyarrow():
                  print(
                      "test data frame conversion using polars and pyarrow."
                  )
                  test_frame_conversion(
                      file1,
                      original_converted_frame1,
                      "polars and pyarrow",
                  )
                  test_frame_conversion(
                      file2,
                      original_converted_frame2,
                      "polars and pyarrow",
                  )
                  test_frame_conversion(
                      file3,
                      original_converted_frame3,
                      "polars and pyarrow",
                  )
  
file_path: h2o-3/h2o-py/tests/testdir_misc/pyunit_gh_15729_15936_datatable_polars_2_pandas.py
imports: import sys
  import h2o
  from tests import pyunit_utils
  from h2o.utils.shared_utils import can_use_datatable, can_use_polars, can_use_pyarrow, can_install_datatable, can_install_polars
  import time
  import pandas
  from h2o.utils.threading import local_context
label_desc: Use image node_id 3 for calling a global function with example usage: test_polars_datatable() without return types