code: def _allele_indices_configuration_likelihood(
      variants, allele_indices_config
  ):
      """Returns the joint likelihood of the alleles given to the variants.
  
      Args:
        variants: list(Variant). The variants with associated likelihoods.
        allele_indices_config: list((int, int)). The allele indices to assign to
          each variant.
  
      Returns:
        The joint likelihood of the particular allele configuration.
  
      Raises:
        ValueError: variants and allele_indices_config do not have the same length.
      """
      if len(variants) != len(allele_indices_config):
          raise ValueError(
              "len(variants) must equal len(allele_indices_config): {} vs {}".format(
                  len(variants), len(allele_indices_config)
              )
          )
  
      retval = 0
      for variant, alleles in zip(variants, allele_indices_config):
          retval += variant_utils.genotype_likelihood(
              variant_utils.only_call(variant), alleles
          )
      return retval
  
imports: import copy
  import itertools
  from absl import flags
  from absl import logging
  import numpy
  from third_party.nucleus.util import genomics_math
  from third_party.nucleus.util import variant_utils
label_desc: Use image node_id 6 for calling a global function with example usage: _allele_indices_configuration_likelihood(variants, allele_indices_config) and returns: retval