code: def generate_multiallelic_frequencies(
      minor_allele_frequency, n_samples
  ):
      """
      given a multiallelic variant with a list of `minor_allele_frequency`
      return an array of frequencies for each genotype for n_samples
      """
      allele_frequencies = get_allele_frequencies(
          minor_allele_frequency
      )
      allele_freq_combos = get_allele_frequency_combos(
          allele_frequencies
      )
      genotype_calls = get_genotype_calls_combinations(
          allele_frequencies
      )
      genotype_list = random.choices(
          genotype_calls, k=n_samples, weights=allele_freq_combos
      )
      return genotype_list
  
label_desc: Use image node_id 5 for calling a global function with example usage: generate_multiallelic_frequencies(minor_allele_frequency, n_samples) and returns: genotype_list