code: def create_producer():
      """Return a setup `Producer`."""
      # make init done
  
      with OrionState(
          experiments=[base_experiment],
          trials=generate_trials(exp_config=base_experiment),
      ) as cfg:
          experiment = cfg.get_experiment(name="default_name")
  
          experiment.algorithm.algorithm.possible_values = [
              (v,) for v in range(0, 11)
          ]
          experiment.algorithm.seed_rng(0)
          experiment.max_trials = 20
          experiment.algorithm.algorithm.max_trials = 20
  
          producer = Producer(experiment)
          yield producer, cfg.storage
  
file_path: orion/tests/unittests/core/worker/test_producer.py
imports: import contextlib
  import copy
  import threading
  import time
  import pytest
  from orion.core.io.experiment_builder import build
  from orion.core.worker.producer import Producer
  from orion.testing import OrionState, generate_trials
label_desc: Use image node_id 3 for calling a global function with example usage: create_producer() without return types