code: def _OptionsOrNone(descriptor_proto):
      """Returns the value of the field `options`, or None if it is not set."""
      if descriptor_proto.HasField("options"):
          return descriptor_proto.options
      else:
          return None
  
imports: import threading
  import warnings
  import six
  from google.protobuf.internal import api_implementation
label_desc: Use image node_id 4 for calling a global function with example usage: _OptionsOrNone(descriptor_proto) and returns: descriptor_proto, None