code: def test_writearff(data_frame, relation_name, expectation, temp_file):
      writearff(
          data_frame,
          temp_file,
          relation_name=relation_name,
          index=False,
      )
  
      with open(temp_file.name) as fp:
          read_date = fp.readlines()
  
      assert expectation == read_date
  
file_path: scikit-survival/tests/test_io.py
imports: from collections import OrderedDict
  from io import StringIO
  import numpy
  import pandas
  import pandas.testing
  import pytest
  from sksurv.io import loadarff, writearff
  from sksurv.testing import FixtureParameterFactory
label_desc: Use image node_id 2 for calling a global function with example usage: test_writearff(data_frame, relation_name, expectation, temp_file) without return types