code: def suggest(args, rng, space, history):
      params = {}
      for key, spec in space.items():
          if spec.is_activated_in(
              params
          ):  # nested search space is chosen
              params[key] = suggest_parameter(
                  args, rng, spec, history[key]
              )
      return params
  
imports: from __future__ import annotations
  from collections import defaultdict
  import logging
  import math
  from typing import Any, NamedTuple
  import numpy
  from scipy.special import erf
  from typing_extensions import Literal
  import nni
  from nni.common.hpo_utils import Deduplicator, OptimizeMode, format_search_space, deformat_parameters, format_parameters
  from nni.tuner import Tuner
  from nni.utils import extract_scalar_reward
  from .None import random_tuner
label_desc: Use image node_id 1 for calling a global function with example usage: suggest(args, rng, space, history) and returns: params