code: def _create_cvo_proto(
      encoded_variant,
      gls,
      encoded_alt_allele_indices,
      true_labels=None,
      logits=None,
      prelogits=None,
      image_encoded=None,
  ):
      """Returns a CallVariantsOutput proto from the relevant input information."""
      variant = variants_pb2.Variant.FromString(encoded_variant)
      alt_allele_indices = deepvariant_pb2.CallVariantsOutput.AltAlleleIndices.FromString(
          encoded_alt_allele_indices
      )
      debug_info = None
      if FLAGS.include_debug_info or FLAGS.debugging_true_label_mode:
          if prelogits is not None:
              assert prelogits.shape == (1, 1, 2048)
              prelogits = prelogits[0][0]
          debug_info = deepvariant_pb2.CallVariantsOutput.DebugInfo(
              has_insertion=variant_utils.has_insertion(variant),
              has_deletion=variant_utils.has_deletion(variant),
              is_snp=variant_utils.is_snp(variant),
              predicted_label=np.argmax(gls),
              true_label=true_labels,
              logits=logits,
              prelogits=prelogits,
              image_encoded=image_encoded,
          )
      call_variants_output = deepvariant_pb2.CallVariantsOutput(
          variant=variant,
          alt_allele_indices=alt_allele_indices,
          genotype_probabilities=gls,
          debug_info=debug_info,
      )
      return call_variants_output
  
imports: import multiprocessing
  import os
  import time
  from typing import Any
  from absl import flags
  from absl import logging
  import numpy
  import tensorflow
  from deepvariant import dv_utils
  from deepvariant import keras_modeling
  from deepvariant import logging_level
  from deepvariant.protos import deepvariant_pb2
  from absl import app
  import multiprocessing
  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 third_party.nucleus.util import errors
  from third_party.nucleus.util import proto_utils
  from third_party.nucleus.util import variant_utils
label_desc: Use image node_id 3 for calling a global function with example usage: _create_cvo_proto(encoded_variant, gls, encoded_alt_allele_indices, true_labels, logits, prelogits, image_encoded) and returns: call_variants_output