class_docstr: Base class for testing descriptor sources.
code: def _writeProtoToFile(self, proto):
      fn = os.path.join(self.get_temp_dir(), "descriptor.pb")
      with open(fn, "wb") as f:
          f.write(proto.SerializeToString())
      return fn
  
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 3 for calling the DescriptorSourceTestBase obj's underlying member method code with example usage: obj._writeProtoToFile(proto) and returns: fn