code: def get_one_example_from_examples_path(source, proto=None):
      """Get the first record from `source`.
  
      Args:
        source: str. A pattern or a comma-separated list of patterns that represent
          file names.
        proto: A proto class. proto.FromString() will be called on each serialized
          record in path to parse it.
  
      Returns:
        The first record, or None.
      """
      files = sharded_file_utils.glob_list_sharded_file_patterns(source)
      if not files:
          raise ValueError(
              'Cannot find matching files with the pattern "{}"'.format(
                  source
              )
          )
      for f in files:
          try:
              return next(tfrecord.read_tfrecords(f, proto=proto))
          except StopIteration:
              # Getting a StopIteration from one next() means source_path is empty.
              # Move on to the next one to try to get one example.
              pass
      return None
  
imports: import json
  from typing import Optional
  from absl import logging
  import numpy
  import tensorflow
  from deepvariant.protos import deepvariant_pb2
  from third_party.nucleus.io import sharded_file_utils
  from third_party.nucleus.io import tfrecord
  from third_party.nucleus.protos import variants_pb2
  from tensorflow.core.example import example_pb2
label_desc: Use image node_id 15 for calling a global function with example usage: get_one_example_from_examples_path(source, proto) and returns: None, next