def METHOD_NAME(space, n):
    trials = space.sample(n)
    for i, trial in enumerate(trials):
        trial.results.append(trial.Result(name="objective", value=i, type="objective"))
        trial.status = "completed"
    return trials