class_docstr: Test the helper function for sequential API
class_docstr_tok: ["Test","the","helper","function","for","sequential","API"]
docstr: Verify that algo config is processed properly
docstr_tok: ["Verify","that","algo","config","is","processed","properly"]
code: def test_workon_algo(self):
      """Verify that algo config is processed properly"""
  
      def foo(x):
          return [dict(name="result", type="objective", value=x * 2)]
  
      experiment = workon(
          foo,
          space={"x": "uniform(0, 10)"},
          max_trials=5,
          algorithm={"random": {"seed": 5}},
      )
      assert experiment.algorithm
      algo = experiment.algorithm.unwrapped
      assert isinstance(algo, Random)
      assert algo.seed == 5
  
imports: import copy
  import json
  from importlib import reload
  import pytest
  import orion.client
  import orion.client.cli
  import orion.core
  from orion.algo.random import Random
  from orion.client import get_experiment
  from orion.client.experiment import ExperimentClient
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils.exceptions import BranchingEvent, NoConfigurationError, RaceCondition, UnsupportedOperation
  from orion.storage.base import setup_storage
  from orion.storage.legacy import Legacy
  from orion.testing import OrionState
label_desc: Use image node_id 2 for calling the TestWorkon obj's underlying member method code with example usage: obj.test_workon_algo() and returns: list