code: def _percentage_in_series(series, counts, values):
      count = sum([counts[value] for value in values])
      percent = count / series.size
      return percent, f"{format_percent(percent)} ({count})"
  
file_path: deepchecks/deepchecks/tabular/checks/train_test_validation/string_mismatch_comparison.py
imports: from typing import List, Union
  import pandas
  from deepchecks.core import CheckResult, ConditionCategory, ConditionResult
  from deepchecks.tabular import Context, TrainTestCheck
  from deepchecks.tabular.utils.feature_importance import N_TOP_MESSAGE, column_importance_sorter_df
  from deepchecks.tabular.utils.messages import get_condition_passed_message
  from deepchecks.utils.dataframes import select_from_dataframe
  from deepchecks.utils.strings import format_percent, get_base_form_to_variants_dict, is_string_column
  from deepchecks.utils.typing import Hashable
label_desc: Use image node_id 2 for calling a global function with example usage: _percentage_in_series(series, counts, values) and returns: percent,  format_percent, str, count, str