code: def dataset_with_duplicates() -> ProblematicDataset:
      return ProblematicDataset(
          dataset=TextData(
              raw_text=[
                  "Explicit is better than implicit.",
                  "Simple is better than complex.",
                  "Complex is better than complicated.",
                  "Flat is better than nested.",
                  "Readability counts.",
                  "Readability counts to.",
                  "Errors should never pass silently.",
                  "There should be one-- and preferably only one --obvious way to do it.",
                  "If the implementation is easy to explain, it may be a good idea.",
                  "Explicit, is better than implicit!",
              ]
          ),
          percent_of_duplicates=0.19999999999999996,
          duplicates=[
              # NOTE:
              # tests depend on items order in this list
              DuplicateVariation(
                  sample_ids=[0, 9],
                  text=[
                      "Explicit is better than implicit.",
                      "Explicit, is better than implicit!",
                  ],
              ),
              DuplicateVariation(
                  sample_ids=[4, 5],
                  text=[
                      "Readability counts.",
                      "Readability counts to.",
                  ],
              ),
          ],
      )
  
file_path: deepchecks/tests/nlp/checks/data_integrity/text_duplicates_test.py
imports: import typing
  import pandas
  import pytest
  from hamcrest import *
  from deepchecks.core.check_result import CheckResult
  from deepchecks.nlp.checks import TextDuplicates
  from deepchecks.nlp.text_data import TextData
  from deepchecks.utils.strings import format_percent
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 1 for calling a global function with example usage: dataset_with_duplicates() and returns: ProblematicDataset