code: def get_hyperopt_space(parts, hyperopt_params, verbose=True):
      space = "def get_space():\n    return {\n"
      for name, param in zip(parts, hyperopt_params):
          param = re.sub(r"\(", "('" + name + "', ", param, 1)
          space += "        '" + name + "': hp." + param + ",\n"
      space = space[:-1]
      space += "\n    }\n"
      if verbose:
          print(">>> Hyperas search space:\n")
          print(space)
      return space
  
imports: import inspect
  import os
  import re
  import sys
  import nbformat
  import numpy
  from hyperopt import fmin
  from nbconvert import PythonExporter
  from .ensemble import VotingModel
  from .utils import remove_imports, remove_all_comments, extract_imports, temp_string, write_temp_files, determine_indent, with_line_numbers, unpack_hyperopt_vals, eval_hyperopt_space, find_signature_end
label_desc: Use image node_id 6 for calling a global function with example usage: get_hyperopt_space(parts, hyperopt_params, verbose) and returns: space