code: def json2parameter(
      x,
      is_rand,
      random_state,
      oldy=None,
      Rand=False,
      name=NodeType.ROOT,
  ):
      """
      Json to pramaters.
  
      """
      if isinstance(x, dict):
          if NodeType.TYPE in x.keys():
              _type = x[NodeType.TYPE]
              _value = x[NodeType.VALUE]
              name = name + "-" + _type
              Rand |= is_rand[name]
              if Rand is True:
                  if _type == "choice":
                      _index = random_state.randint(len(_value))
                      y = {
                          NodeType.INDEX: _index,
                          NodeType.VALUE: json2parameter(
                              x[NodeType.VALUE][_index],
                              is_rand,
                              random_state,
                              None,
                              Rand,
                              name=name + "[%d]" % _index,
                          ),
                      }
                  else:
                      y = getattr(parameter_expressions, _type)(
                          *(_value + [random_state])
                      )
              else:
                  y = copy.deepcopy(oldy)
          else:
              y = dict()
              for key in x.keys():
                  y[key] = json2parameter(
                      x[key],
                      is_rand,
                      random_state,
                      oldy[key] if oldy else None,
                      Rand,
                      name + "[%s]" % str(key),
                  )
      elif isinstance(x, list):
          y = list()
          for i, x_i in enumerate(x):
              if isinstance(x_i, dict):
                  if NodeType.NAME not in x_i.keys():
                      raise RuntimeError(
                          "'_name' key is not found in this nested search space."
                      )
              y.append(
                  json2parameter(
                      x_i,
                      is_rand,
                      random_state,
                      oldy[i] if oldy else None,
                      Rand,
                      name + "[%d]" % i,
                  )
              )
      else:
          y = copy.deepcopy(x)
      return y
  
imports: import copy
  from enum import Enum, unique
  from pathlib import Path
  from schema import And
  from .None import parameter_expressions
label_desc: Use image node_id 6 for calling a global function with example usage: json2parameter(x, is_rand, random_state, oldy, Rand, name) and returns: y