class_docstr: Base class for testing descriptor sources.
docstr: DescriptorSourceTestBase initializer.
  
  Args:
    decode_module: a module containing the `decode_proto_op` method
    encode_module: a module containing the `encode_proto_op` method
    methodName: the name of the test method (same as for test.TestCase)
docstr_tok: ["DescriptorSourceTestBase","initializer",".","Args",":","decode_module",":","a","module","containing","the","`","decode_proto_op","`","method","encode_module",":","a","module","containing","the","`","encode_proto_op","`","method","methodName",":","the","name","of","the","test","method","(","same","as","for","test.TestCase",")"]
code: def __init__(
      self, decode_module, encode_module, methodName="runTest"
  ):  # pylint: disable=invalid-name
      """DescriptorSourceTestBase initializer.
  
      Args:
        decode_module: a module containing the `decode_proto_op` method
        encode_module: a module containing the `encode_proto_op` method
        methodName: the name of the test method (same as for test.TestCase)
      """
  
      super(DescriptorSourceTestBase, self).__init__(methodName)
      self._decode_module = decode_module
      self._encode_module = encode_module
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/proto/descriptor_source_test_base.py
imports: import os
  import numpy
  from google.protobuf.descriptor_pb2 import FieldDescriptorProto
  from google.protobuf.descriptor_pb2 import FileDescriptorSet
  from tensorflow.python.framework import dtypes
  from tensorflow.python.kernel_tests.proto import proto_op_test_base
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 to create a new DescriptorSourceTestBase object from inherited base classes: test with example: obj = DescriptorSourceTestBase(decode_module, encode_module, methodName)