code: def temp_file_pair():
      tmp_train = tempfile.NamedTemporaryFile(
          "w", suffix=".arff", delete=False
      )
      tmp_test = tempfile.NamedTemporaryFile(
          "w", suffix=".arff", delete=False
      )
  
      yield tmp_train, tmp_test
  
      os.unlink(tmp_train.name)
      os.unlink(tmp_test.name)
  
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 1 for calling a global function with example usage: temp_file_pair() without return types