def METHOD_NAME(mean_list: list, avg_correlation: float, std: float):
    corr_matrix = boring_corr_matrix_values(len(mean_list), offdiag=avg_correlation)
    stdev_list = np.full(len(mean_list), std)
    sigma = sigma_from_corr_and_std(stdev_list, corr_matrix)
    weights = optimise_from_sigma_and_mean_list(sigma, mean_list)
    return weights