class_docstr: Find samples that contain special characters and also the most common special characters in the dataset.
  
  Parameters
  ----------
  special_characters_allow_list: Union[str, Sequence[str]] , default ' ' + string.punctuation
      set of special characters to ignore. Punctuation (string.punctuation) is whitelisted by default.
  max_samples_to_show : int , default: 5
      Maximum number of most common special-only samples to show in the display.
  max_special_chars_to_show : int , default: 5
      Maximum number of most common special characters per sample to show in the display.
  max_chars_to_review_per_sample : int , default: 10000
      Maximal number of characters to sample randomly from each text sample.
  n_samples: int, default: 10_000_000
      number of samples to use for this check.
  random_state : int, default: 42
      random seed for all check internals.
  {max_text_length_for_display_param:1*indent}
class_docstr_tok: ["Find","samples","that","contain","special","characters","and","also","the","most","common","special","characters","in","the","dataset",".","Parameters","--","--","--","--","--","special_characters_allow_list",":","Union","[","str",",","Sequence","[","str","]","]",",","default","'","'","+","string.punctuation","set","of","special","characters","to","ignore",".","Punctuation","(","string.punctuation",")","is","whitelisted","by","default",".","max_samples_to_show",":","int",",","default",":","5","Maximum","number","of","most","common","special-only","samples","to","show","in","the","display",".","max_special_chars_to_show",":","int",",","default",":","5","Maximum","number","of","most","common","special","characters","per","sample","to","show","in","the","display",".","max_chars_to_review_per_sample",":","int",",","default",":","10000","Maximal","number","of","characters","to","sample","randomly","from","each","text","sample",".","n_samples",":","int",",","default",":","10_000_000","number","of","samples","to","use","for","this","check",".","random_state",":","int",",","default",":","42","random","seed","for","all","check","internals",".","{","max_text_length_for_display_param:1","*","indent","}"]
code: def __init__(
      self,
      special_characters_allow_list: t.Union[
          str, t.Sequence[str], None
      ] = None,
      max_samples_to_show: int = 5,
      max_special_chars_to_show: int = 5,
      max_chars_to_review_per_sample: int = 10000,
      n_samples: int = 1_000_000,
      random_state: int = 42,
      max_text_length_for_display: int = 100,
      **kwargs,
  ):
      super().__init__(**kwargs)
      self.special_characters_allow_list = (
          frozenset(special_characters_allow_list)
          if special_characters_allow_list
          else self.DEFAULT_ALLOW_LIST
      )
      self.special_characters_deny_list = (
          self.SPECIAL_CHARACTERS.difference(
              self.special_characters_allow_list
          )
      )
      self.max_samples_to_show = max_samples_to_show
      self.max_special_chars_to_show = max_special_chars_to_show
      self.max_chars_to_review_per_sample = (
          max_chars_to_review_per_sample
      )
      self.n_samples = n_samples
      self.random_state = random_state
      self.max_text_length_for_display = max_text_length_for_display
  
imports: import random
  import string
  import typing
  from collections import Counter
  import numpy
  import pandas
  from typing_extensions import Self, TypedDict
  from deepchecks.core import CheckResult, ConditionCategory, ConditionResult
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.nlp import Context, SingleDatasetCheck
  from deepchecks.nlp._shared_docs import docstrings
  from deepchecks.nlp.text_data import TextData
  from deepchecks.utils.dataframes import hide_index_for_display
  from deepchecks.utils.strings import SPECIAL_CHARACTERS, format_percent
label_desc: Use image node_id 1 to create a new SpecialCharacters object from inherited base classes: SingleDatasetCheck with example: obj = SpecialCharacters(special_characters_allow_list, max_samples_to_show, max_special_chars_to_show, max_chars_to_review_per_sample, n_samples, random_state, max_text_length_for_display)