code: def fixture_to_file(request):
      """fixture_to_file"""
      tmp_path = tempfile.mkdtemp()
      filename = os.path.join(tmp_path, "data.text")
  
      def fin():
          shutil.rmtree(tmp_path)
  
      request.addfinalizer(fin)
  
      args = filename
      func = tfio.experimental.IODataset.to_file
  
      def data_func(filename):
          with open(filename) as f:
              lines = list(f)
          return lines
  
      return args, func, data_func
  
imports: import os
  import sys
  import time
  import shutil
  import tempfile
  import numpy
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 20 for calling a global function with example usage: fixture_to_file(request) and returns: args,  func,  data_func, lines