code: def test_fork_lineages_num_larger_than_queue(self, space: Space):
      num = 10
      pbt = _create_algo(
          space,
          exploit=ExploitStub(rval=None).configuration,
      ).unwrap(PBT)
  
      trials = sample_trials(
          pbt.space, num, status="completed", objective=1
      )
      for trial in trials:
          pbt.register(trial)
  
      pbt._queue = trials[:]
  
      num_fork = 4
      branched_trials = pbt._fork_lineages(num_fork)
  
      assert len(branched_trials) == num_fork
      assert len(pbt._queue) == num - num_fork
  
      trial_ids = [trial.id for trial in trials]
  
      assert [trial.parent for trial in branched_trials] == trial_ids[
          :num_fork
      ]
      assert [trial.id for trial in pbt._queue] == trial_ids[num_fork:]
  
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 12 for calling the TestPBTSuggest obj's underlying member method code with example usage: obj.test_fork_lineages_num_larger_than_queue(space) without return types