def METHOD_NAME(self, n_alleles):
    """Returns a list containing the one-hot encoded representation of the
    called alleles.
    Examples
    --------
    >>> n_alleles = 2
    >>> hom_ref = hl.Call([0, 0])
    >>> het = hl.Call([0, 1])
    >>> hom_var = hl.Call([1, 1])
    >>> het.one_hot_alleles(n_alleles)
    [1, 1]
    >>> hom_var.one_hot_alleles(n_alleles)
    [0, 2]
    Notes
    -----
    This one-hot representation is the positional sum of the one-hot
    encoding for each called allele.  For a biallelic variant, the
    one-hot encoding for a reference allele is [1, 0] and the one-hot
    encoding for an alternate allele is [0, 1].
    Parameters
    ----------
    n_alleles : :obj:`int`
        Number of total alleles, including the reference.
    Returns
    -------
    :obj:`list` of :obj:`int`
    """
    r = [0] * n_alleles
    for a in self._alleles:
        r[a] += 1
    return r