code: def test_init(dumbalgo):
      """Check if initialization works for nested algos."""
      nested_algo = {"DumbAlgo": dict(value=6, scoring=5)}
      algo = dumbalgo(8, value=1)
      assert algo.space == 8
      assert algo.value == 1
      assert algo.scoring == 0
      assert algo.judgement is None
      assert algo.suspend is False
      assert algo.done is False
  
file_path: orion/tests/unittests/algo/test_base.py
imports: import pytest
  from orion.algo.base import BaseAlgorithm
  from orion.algo.space import Integer, Real, Space
  from orion.core.utils import backward, format_trials
label_desc: Use image node_id 1 for calling a global function with example usage: test_init(dumbalgo) without return types