code: def test_option_context(pandas_compatible, default_integer_bitwidth):
      prev_pandas_compatible_setting = cudf.get_option(
          "mode.pandas_compatible"
      )
      prev_width_setting = cudf.get_option("default_integer_bitwidth")
  
      with cudf.option_context(
          "mode.pandas_compatible",
          pandas_compatible,
          "default_integer_bitwidth",
          default_integer_bitwidth,
      ):
          assert (
              cudf.get_option("mode.pandas_compatible")
              is pandas_compatible
          )
          assert (
              cudf.get_option("default_integer_bitwidth")
              is default_integer_bitwidth
          )
  
      assert (
          cudf.get_option("mode.pandas_compatible")
          is prev_pandas_compatible_setting
      )
      assert (
          cudf.get_option("default_integer_bitwidth")
          is prev_width_setting
      )
  
file_path: cudf/python/cudf/cudf/tests/test_options.py
imports: from contextlib import redirect_stdout
  from io import StringIO
  import pytest
  import cudf
label_desc: Use image node_id 5 for calling a global function with example usage: test_option_context(pandas_compatible, default_integer_bitwidth) without return types