code: def test_check_on_samples_with_special_characters(
      dataset_with_special_characters,
  ):
      # Arrange
      check = SpecialCharacters().add_condition_samples_ratio_w_special_characters_less_or_equal(
          threshold_ratio_per_sample=0.1, max_ratio=0.15
      )
  
      # Act
      result = check.run(dataset=dataset_with_special_characters)
      conditions_decision = check.conditions_decision(result)
  
      # Assert
      assert_that(
          result.value,
          has_entries(
              {
                  "samples_per_special_char": has_entries(
                      {"¶": [0], "·": [1, 3, 4], "¸": [1]}
                  ),
                  "percent_of_samples_with_special_chars": equal_to(
                      0.8
                  ),
                  "percent_special_chars_per_sample": has_length(5),
              }
          ),
      )
  
      assert_that(result.display, has_length(3))
  
      assert_that(
          conditions_decision[0],
          equal_condition_result(
              is_pass=False,
              details="Found 1 samples with special char ratio above threshold",
              name="Ratio of samples containing more than 10% special characters is below 15%",
          ),
      )
  
file_path: deepchecks/tests/nlp/checks/data_integrity/special_characters_test.py
imports: import pytest
  from hamcrest import *
  from deepchecks.nlp.checks.data_integrity.special_characters import SpecialCharacters
  from deepchecks.nlp.text_data import TextData
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 5 for calling a global function with example usage: test_check_on_samples_with_special_characters(dataset_with_special_characters) without return types