code: def testSideEffect(self):
      def writer_fn():
          input_dataset = readers.TFRecordDataset(self._createFile())
          return writers.TFRecordWriter(self._outputFilename()).write(
              input_dataset
          )
  
      @def_function.function
      def fn():
          _ = writer_fn()
          return "hello"
  
      self.assertEqual(self.evaluate(fn()), b"hello")
      for i, r in enumerate(
          tf_record.tf_record_iterator(self._outputFilename())
      ):
          self.assertAllEqual(self._record(i), r)
  
imports: import os
  from absl.testing import parameterized
  from tensorflow.python.data.experimental.ops import grouping
  from tensorflow.python.data.experimental.ops import writers
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import readers
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.lib.io import python_io
  from tensorflow.python.lib.io import tf_record
  from tensorflow.python.ops import string_ops
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 13 for calling the TFRecordWriterTest obj's underlying member method code with example usage: obj.testSideEffect() and returns: writers, str