code: def _get_descriptor_set():
      """Returns a FileDescriptorSet proto to be used by tf.io.decode_proto."""
      proto = pb.FileDescriptorSet()
  
      # The FileDescriptor for tensorflow.ranking.internal.ExampleListWithContext.
      file_proto = proto.file.add(
          name=_FILE_NAME, package=_PACKAGE, syntax="proto3"
      )
      message_proto = file_proto.message_type.add(name=_MESSAGE_NAME)
      message_proto.field.add(
          name=_EXAMPLES_FIELD_NAME,
          number=1,
          type=pb.FieldDescriptorProto.TYPE_BYTES,
          label=pb.FieldDescriptorProto.LABEL_REPEATED,
      )
      message_proto.field.add(
          name=_CONTEXT_FIELD_NAME,
          number=2,
          type=pb.FieldDescriptorProto.TYPE_BYTES,
      )
  
      return proto
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import functools
  import six
  import tensorflow
  from tensorflow import estimator
  from google.protobuf import descriptor_pb2
  from tensorflow_ranking.python import utils
label_desc: Use image node_id 1 for calling a global function with example usage: _get_descriptor_set() and returns: proto