code: def problematic_train_test_split() -> ProblematicTrainTestSplit:
      train = TextData(
          raw_text=[
              "Explicit is better than implicit.",
              "Simple is better than complex.",
              "Complex is better than complicated.",
              "Flat is better than nested.",
              "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.",
              "Readability counts.",
              "Readability counts to.",
          ]
      )
      test = TextData(
          raw_text=[
              "Beautiful is better than ugly.",
              "Sparse is better than dense.",
              "!! Readability counts!!!",
              "Readability counts.☕",
              ",readability counts.",
              "readability !!!!! counts.",
              "For python community, readability counts.",
              "Special cases aren't special enough to break the rules.",
              "ERRORS - should never pass silently!",
              "Now is better than never.",
          ]
      )
      return ProblematicTrainTestSplit(
          train=train,
          test=test,
          duplicates_ration=0.4,
          duplicates=[
              # NOTE:
              # tests depend on items order in this list
              DuplicateVariation(
                  train_sample_ids=[7, 8],
                  test_sample_ids=[2, 4, 5],
                  train_samples=[
                      "Readability counts.",
                      "Readability counts to.",
                  ],
                  test_samples=[
                      "!! Readability counts!!!",
                      ",readability counts.",
                      "readability !!!!! counts.",
                  ],
              ),
              DuplicateVariation(
                  train_sample_ids=[4],
                  test_sample_ids=[8],
                  train_samples=["Errors should never pass silently."],
                  test_samples=["ERRORS - should never pass silently!"],
              ),
          ],
      )
  
imports: import typing
  import pandas
  import pytest
  from hamcrest import *
  from deepchecks.nlp.checks import TrainTestSamplesMix
  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: problematic_train_test_split() and returns: ProblematicTrainTestSplit