class_docstr: Test suite for the NevergradOptimizer algorithm.
docstr: Verify that suggest returns correct number of trials if ``num`` is specified in
  ``suggest``.
docstr_tok: ["Verify","that","suggest","returns","correct","number","of","trials","if","``","num","``","is","specified","in","``","suggest","``","."]
code: def test_suggest_n(self):
      """Verify that suggest returns correct number of trials if ``num`` is specified in
      ``suggest``.
      """
      algo = self.create_algo()
      trials = algo.suggest(5)
      # This condition in the original test is not respected.
      # assert len(trials) == 5
      assert 5 >= len(trials) >= 1
  
file_path: orion/tests/unittests/algo/long/nevergrad/integration_test.py
imports: from __future__ import annotations
  from typing import Any, ClassVar
  import pytest
  from pytest import FixtureRequest, MarkDecorator
  from orion.algo.nevergradoptimizer import NOT_WORKING
  from orion.algo.nevergradoptimizer import NevergradOptimizer, import_optional
  from orion.testing.algo import BaseAlgoTests, TestPhase
  import nevergrad
label_desc: Use image node_id 2 for calling the TestNevergradOptimizer obj's underlying member method code with example usage: obj.test_suggest_n() without return types