docstr: Test that `fix_arrow_incompatible_column_types` correctly fixes
  columns containing unsupported types by converting them to string and
  leaves supported columns unchanged.
docstr_tok: ["Test","that","`","fix_arrow_incompatible_column_types","`","correctly","fixes","columns","containing","unsupported","types","by","converting","them","to","string","and","leaves","supported","columns","unchanged","."]
code: def test_fix_arrow_incompatible_column_types(
      self, column: pd.Series, incompatible: bool
  ):
      """Test that `fix_arrow_incompatible_column_types` correctly fixes
      columns containing unsupported types by converting them to string and
      leaves supported columns unchanged.
      """
      df = pd.DataFrame({"c1": column})
      fixed_df = type_util.fix_arrow_incompatible_column_types(df)
      col_dtype = fixed_df["c1"].dtype
      inferred_type = infer_dtype(fixed_df["c1"])
  
      if incompatible:
          # Column should have been converted to string.
          self.assertIsInstance(col_dtype, pd.StringDtype)
          self.assertEqual(inferred_type, "string")
      else:
          # Column should have the original type.
          self.assertEqual(col_dtype, df["c1"].dtype)
          self.assertEqual(inferred_type, infer_dtype(df["c1"]))
  
imports: import enum
  import unittest
  from collections import namedtuple
  from datetime import date
  from decimal import Decimal
  from typing import Any
  from unittest.mock import patch
  import numpy
  import pandas
  import plotly.graph_objs
  import pytest
  from pandas.api.types import infer_dtype
  from parameterized import parameterized
  from streamlit import errors, type_util
  from streamlit.errors import StreamlitAPIException
  from tests.streamlit.data_mocks import BASE_TYPES_DF, DATETIME_TYPES_DF, INTERVAL_TYPES_DF, LIST_TYPES_DF, NUMBER_TYPES_DF, PERIOD_TYPES_DF, SHARED_TEST_CASES, SPECIAL_TYPES_DF, UNSUPPORTED_TYPES_DF, TestCaseMetadata, TestObject
  from tests.streamlit.snowpark_mocks import DataFrame
  from tests.streamlit.snowpark_mocks import Row
  from tests.testutil import create_snowpark_session, patch_config_options
label_desc: Use image node_id 20 for calling the TypeUtilTest obj's underlying member method code with example usage: obj.test_fix_arrow_incompatible_column_types(column, incompatible) without return types