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 extension_test_case():
      test_case = test_example_pb2.TestCase()
      value = test_case.values.add()
      message_value = value.Extensions[test_example_pb2.ext_value].add()
      message_value.double_value = 23.5
      test_case.shapes.append(1)
      test_case.sizes.append(1)
      field = test_case.fields.add()
      field.name = test_example_pb2.ext_value.full_name
      field.dtype = types_pb2.DT_STRING
      message_value = field.value.Extensions[
          test_example_pb2.ext_value
      ].add()
      message_value.double_value = 23.5
      return test_case
  
file_path: tensorflow/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 10 for calling the ProtoOpTestBase obj's underlying member method code with example usage: obj.extension_test_case() and returns: test_case