code: def test_condition_no_variants_fail():
      # Arrange
      data = {
          "col1": [
              "Deep",
              "deep",
              "deep!!!",
              "$deeP$",
              "earth",
              "foo",
              "bar",
              "foo?",
          ]
      }
      df = pd.DataFrame(data=data)
      check = StringMismatch().add_condition_no_variants()
      # Act
      result = check.conditions_decision(check.run(df))
      # Assert
      assert_that(
          result,
          has_items(
              equal_condition_result(
                  is_pass=False,
                  name="No string variants",
                  details="Found 1 out of 1 columns with amount of variants above threshold: "
                  "{'col1': ['deep', 'foo']}",
                  category=ConditionCategory.WARN,
              )
          ),
      )
  
imports: import numpy
  import pandas
  from hamcrest import assert_that, close_to, greater_than, has_entries, has_entry, has_items, has_length
  from deepchecks.core import ConditionCategory
  from deepchecks.tabular.checks.data_integrity import StringMismatch
  from deepchecks.tabular.dataset import Dataset
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 10 for calling a global function with example usage: test_condition_no_variants_fail() without return types