code: def assert_display(display: t.Sequence[t.Any]):
      assert_that(
          display,
          has_items(instance_of(str), instance_of(pd.DataFrame)),
      )
      table = display[1]
      assert_that(
          table.index.names,
          equal_to(["Train Sample IDs", "Test Sample IDs"]),
      )
      assert_that(
          table.columns.to_list(),
          equal_to(["Test Text Sample", "Number of Test Duplicates"]),
      )
  
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 6 for calling a global function with example usage: assert_display(display) without return types