docstr: Test that `check_python_comparable` raises an exception if ndarray.
docstr_tok: ["Test","that","`","check_python_comparable","`","raises","an","exception","if","ndarray","."]
code: def test_check_python_comparable_exception(self, sequence, type_str):
      """Test that `check_python_comparable` raises an exception if ndarray."""
      with pytest.raises(StreamlitAPIException) as exception_message:
          type_util.check_python_comparable(sequence)
      self.assertEqual(
          (
              "Invalid option type provided. Options must be comparable, returning a "
              f"boolean when used with *==*. \n\nGot **{type_str}**, which cannot be "
              "compared. Refactor your code to use elements of comparable types as "
              "options, e.g. use indices instead."
          ),
          str(exception_message.value),
      )
  
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 17 for calling the TypeUtilTest obj's underlying member method code with example usage: obj.test_check_python_comparable_exception(sequence, type_str) without return types