class_docstr: Base class for testing proto decoding and encoding ops.
class_docstr_tok: ["Base","class","for","testing","proto","decoding","and","encoding","ops","."]
code: def optional_test_case():
      test_case = test_example_pb2.TestCase()
      value = test_case.values.add()
      value.bool_value.append(True)
      test_case.shapes.append(1)
      test_case.sizes.append(1)
      field = test_case.fields.add()
      field.name = "bool_value"
      field.dtype = types_pb2.DT_BOOL
      field.value.bool_value.append(True)
      test_case.sizes.append(0)
      field = test_case.fields.add()
      field.name = "double_value"
      field.dtype = types_pb2.DT_DOUBLE
      field.value.double_value.append(0.0)
      return test_case
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/proto/proto_op_test_base.py
imports: import ctypes
  import os
  from tensorflow.core.framework import types_pb2
  from tensorflow.python.kernel_tests.proto import test_example_pb2
  from tensorflow.python.platform import test
label_desc: Use image node_id 6 for calling the ProtoOpTestBase obj's underlying member method code with example usage: obj.optional_test_case() and returns: test_case