code: def test_condition_no_new_variants_fail():
      # Arrange
      data = {
          "col1": [
              "Deep",
              "deep",
              "deep!!!",
              "earth",
              "foo",
              "bar",
              "foo?",
          ]
      }
      compared_data = {
          "col1": [
              "Deep",
              "deep",
              "$deeP$",
              "earth",
              "foo",
              "bar",
              "foo?",
              "?deep",
          ]
      }
      check = StringMismatchComparison().add_condition_no_new_variants()
      # Act
      data_df, compared_data_df = pd.DataFrame(data=data), pd.DataFrame(
          data=compared_data
      )
      result, *_ = check.conditions_decision(
          check.run(compared_data_df, data_df)
      )
      # Assert
      assert_that(
          result,
          equal_condition_result(
              is_pass=False,
              name="No new variants allowed in test data",
              details="Found 1 out of 1 relevant columns with ratio of variants above threshold: {'col1': '14.29%'}",
          ),
      )
  
file_path: deepchecks/tests/tabular/checks/train_test_validation/string_mismatch_comparison_test.py
imports: import numpy
  import pandas
  from hamcrest import assert_that, equal_to, greater_than, has_entries, has_entry, has_items, has_length
  from deepchecks.tabular.checks import StringMismatchComparison
  from deepchecks.tabular.dataset import Dataset
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 7 for calling a global function with example usage: test_condition_no_new_variants_fail() without return types