code: def test_polars_pyarrow():
      if not (can_install_polars()):
          print(
              "polars and pyarrow are not available to test.  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, polars_disabled=True
          ):
              h2oframe = genFrame()
              print(
                  "converting h2o frame to pandas frame using single thread:"
              )
              original_pandas = h2oframe.as_data_frame()
          with local_context(datatable_disabled=True):
              test_frame_conversion(h2oframe, original_pandas)
  
file_path: h2o-3/h2o-py/tests/testdir_misc/pyunit_gh_15936_polars2pandas_error.py
imports: import sys
  import h2o
  from tests import pyunit_utils
  from h2o.utils.shared_utils import can_use_polars, can_use_pyarrow, can_install_polars
  import pandas
  from h2o.utils.threading import local_context
label_desc: Use image node_id 2 for calling a global function with example usage: test_polars_pyarrow() without return types