code: def create_param_config(name, vrange, vtype):
      """
      Reads the configuration file and checks for errors.
      """
      if vtype not in ("float", "int", "choice"):
          raise ValueError(
              "%s is not supported as hyperparameter type" % vtype
          )
      if vtype != "choice" and len(vrange) != 2:
          raise ValueError(
              "Range need to be a two element tuple for %s" % vtype
          )
  
      return {"name": name, "range": vrange, "type": vtype}
  
imports: import abc
  import logging
  import pickle
  import json
  import threading
  from six.moves import input
  from ..utils import set_default_keyvalue, check_missing_key, get_from_options
  from .None import ProposerStatus
label_desc: Use image node_id 1 for calling a global function with example usage: create_param_config(name, vrange, vtype) and returns: dict