code: def test_io_dataset_to(fixture_lookup, io_dataset_fixture):
      """test_io_dataset_to"""
      args, func, data_func = fixture_lookup(io_dataset_fixture)
  
      dataset = tf.data.Dataset.range(1000)
      dataset = dataset.batch(15)
      dataset = dataset.map(tf.strings.as_string)
      dataset = dataset.map(lambda e: e + "\n")
  
      entries = func(dataset, args)
      assert (entries) == 1000
  
      lines = data_func(args)
      return np.all(lines == [f"{i}\n" for i in range(1000)])
  
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 39 for calling a global function with example usage: test_io_dataset_to(fixture_lookup, io_dataset_fixture) and returns: np