code: def test_condition_no_new_variants_pass():
      # Arrange
      base_data = {
          "col1": [
              "Deep",
              "deep",
              "deep!!!",
              "earth",
              "foo",
              "bar",
              "foo?",
          ]
      }
      tested_data = {
          "col1": [
              "Deep",
              "deep",
              "cat",
              "earth",
              "foo",
              "bar",
              "foo?",
              "bar",
          ]
      }
      check = StringMismatchComparison().add_condition_no_new_variants()
  
      # Act
      test_df, base_df = pd.DataFrame(data=tested_data), pd.DataFrame(
          data=base_data
      )
      result, *_ = check.conditions_decision(
          check.run(base_df, test_df)
      )
  
      # Assert
      assert_that(
          result,
          equal_condition_result(
              is_pass=True,
              details="Passed for 1 relevant column",
              name="No new variants allowed in test data",
          ),
      )
  
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 8 for calling a global function with example usage: test_condition_no_new_variants_pass() without return types