code: def test_inspect_long_samples():
      # Arrange
      dataset = TextData(
          raw_text=[
              "".join(["aa"] * 500),
              "".join(["aa"] * 500),
              "".join(["aa"] * 600),
          ]
      )
  
      check = TextDuplicates()
  
      # Act
      result = check.run(dataset=dataset)
  
      # Assert
      assert_that(result, instance_of(CheckResult))
      assert_that(
          result.value,
          has_entries(
              {
                  "percent_of_duplicates": close_to(0.33, 0.01),
                  "duplicates": instance_of(pd.DataFrame),
              }
          ),
      )
  
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 7 for calling a global function with example usage: test_inspect_long_samples() without return types