class_docstr: Base class for testing TFRecord-based features.
code: def _record(self, f, r, l):
      example = example_pb2.Example(
          features=feature_pb2.Features(
              feature={
                  "file": feature_pb2.Feature(
                      int64_list=feature_pb2.Int64List(value=[f])
                  ),
                  "record": feature_pb2.Feature(
                      int64_list=feature_pb2.Int64List(value=[r])
                  ),
                  "keywords": feature_pb2.Feature(
                      bytes_list=feature_pb2.BytesList(
                          value=self._get_keywords(f, r)
                      )
                  ),
                  "label": feature_pb2.Feature(
                      bytes_list=feature_pb2.BytesList(
                          value=[compat.as_bytes(l)]
                      )
                  ),
              }
          )
      )
      return example.SerializeToString()
  
imports: import os
  from tensorflow.core.example import example_pb2
  from tensorflow.core.example import feature_pb2
  from tensorflow.python.data.experimental.ops import readers
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import readers
  from tensorflow.python.framework import dtypes
  from tensorflow.python.lib.io import python_io
  from tensorflow.python.ops import parsing_ops
  from tensorflow.python.util import compat
label_desc: Use image node_id 3 for calling the FeaturesTestBase obj's underlying member method code with example usage: obj._record(f, r, l) and returns: example