code: def check_options_are_valid(options):
      """Checks that all the options chosen make sense together."""
  
      # Check for general flags (shared for DeepVariant and DeepTrio).
      make_examples_options.check_options_are_valid(
          options, main_sample_index=MAIN_SAMPLE_INDEX
      )
  
      child = options.sample_options[MAIN_SAMPLE_INDEX]
  
      # Sanity check the sample_names (specific to trio).
      if (
          child.variant_caller_options.sample_name
          == FLAGS.sample_name_parent1
          or child.variant_caller_options.sample_name
          == FLAGS.sample_name_parent2
      ):
          errors.log_and_raise(
              "The sample_name of the child is the same as one of the parents.",
              errors.CommandLineError,
          )
  
      if options.pic_options.alt_aligned_pileup == "rows":
          errors.log_and_raise(
              '--alt_aligned_pileup="rows" cannot be used with '
              "DeepTrio because the pileup images would become "
              "too tall for InceptionV3."
          )
  
      if (
          options.mode
          == deepvariant_pb2.MakeExamplesOptions.CANDIDATE_SWEEP
          and child.candidate_positions is None
      ):
          errors.log_and_raise(
              "--candidate_positions is required when --positions_sweep_mode is set."
          )
  
file_path: deepvariant/deeptrio/make_examples.py
imports: import os
  from absl import app
  from absl import flags
  from deeptrio import dt_constants
  from deepvariant import logging_level
  from deepvariant import make_examples_core
  from deepvariant import make_examples_options
  from deepvariant.protos import deepvariant_pb2
  from third_party.nucleus.io.python import hts_verbose
  from third_party.nucleus.util import errors
  from third_party.nucleus.util import proto_utils
label_desc: Use image node_id 3 for calling a global function with example usage: check_options_are_valid(options) without return types