def METHOD_NAME(alpha: Tensor, beta: Tensor) -> Tensor:
    F = getF(alpha)
    samples_X = F.sample_gamma(
        alpha=alpha, beta=F.ones_like(alpha), dtype=dtype
    )
    samples_Y = F.sample_gamma(
        alpha=beta, beta=F.ones_like(beta), dtype=dtype
    )
    return samples_X / (samples_X + samples_Y)