code: def assert_x_equal(x_true, x_train):
      tm.assert_index_equal(x_true.columns, x_train.columns, exact=True)
      tm.assert_index_equal(x_true.index, x_train.index, exact=True)
  
      tm.assert_frame_equal(
          x_true,
          x_train,
          check_index_type=False,
          check_column_type=True,
          check_names=False,
      )
  
imports: from contextlib import ExitStack
  from contextlib import nullcontext
  from io import StringIO
  import os
  import tempfile
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  import pandas
  import pandas.testing
  import pytest
  import sksurv.datasets
  from sksurv.io import writearff
  from sksurv.testing import FixtureParameterFactory
label_desc: Use image node_id 8 for calling a global function with example usage: assert_x_equal(x_true, x_train) without return types