code: def test_suggest_num_population_size_sample(
      self, space: Space, mocker: MockerFixture
  ):
      population_size = 10
      pbt = _create_algo(space, population_size=population_size).unwrap(
          PBT
      )
  
      pbt_sample_mock = mocker.spy(pbt, "_sample")
      pbt_fork_mock = mocker.spy(pbt, "_fork_lineages")
  
      num = 6
      assert len(pbt.suggest(num)) == num
  
      pbt_sample_mock.assert_called_with(num)
      pbt_fork_mock.assert_called_with(0)
  
      assert len(pbt.suggest(num)) == 4
  
      pbt_sample_mock.assert_called_with(4)
      pbt_fork_mock.assert_called_with(2)
  
imports: from __future__ import annotations
  import functools
  import logging
  from typing import ClassVar
  import numpy
  import pytest
  from base import ExploitStub, ExploreStub, sample_trials
  from pytest_mock import MockerFixture
  from orion.algo.pbt.pbt import PBT, compute_fidelities
  from orion.algo.space import Space
  from orion.core.worker.primary_algo import SpaceTransform, create_algo
  from orion.core.worker.transformer import ReshapedSpace, TransformedSpace
  from orion.core.worker.trial import Trial
  from orion.testing.algo import BaseAlgoTests, TestPhase
label_desc: Use image node_id 14 for calling the TestPBTSuggest obj's underlying member method code with example usage: obj.test_suggest_num_population_size_sample(space, mocker) without return types