code: def _get_dup_info(index_arr: list, text_prefix: str) -> dict:
      text = ", ".join([str(i) for i in index_arr])
      if len(text) > 30:
          text = f"{text[:30]}.. Tot. {(len(index_arr))}"
  
      return {"text": f"{text_prefix}{text}", "count": len(index_arr)}
  
file_path: deepchecks/deepchecks/tabular/checks/train_test_validation/train_test_samples_mix.py
imports: from typing import Any, List
  import pandas
  from pandas.core.dtypes.common import is_integer_dtype
  from deepchecks.core import CheckResult
  from deepchecks.tabular import Context, TrainTestCheck
  from deepchecks.utils.abstracts.train_test_samples_mix import TrainTestSamplesMixAbstract
  from deepchecks.utils.strings import format_percent
  from deepchecks.utils.typing import Hashable
label_desc: Use image node_id 3 for calling a global function with example usage: _get_dup_info(index_arr, text_prefix) and returns: dict