code: def test_long_samples():
      # Arrange
      train = TextData(
          raw_text=[
              " ".join(["aa"] * 500),
              " ".join(["bb"] * 500),
              " ".join(["cc"] * 500),
          ]
      )
      test = TextData(
          raw_text=[
              " ".join(["aa"] * 500),
              " ".join(["dd"] * 500),
              " ".join(["aa"] * 600),
          ]
      )
  
      # Act
      check = TrainTestSamplesMix()
  
      # Assert
      result = check.run(train_dataset=train, test_dataset=test)
      assert_that(
          result.value,
          has_entries(
              {
                  "ratio": close_to(0.333, 0.001),
                  "duplicates": instance_of(pd.DataFrame),
              }
          ),
      )
  
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 7 for calling a global function with example usage: test_long_samples() without return types