code: def c_config_spaces(x):
      """constructor for ConfigSpaces"""
      ret = CConfigSpaces()
      ret.spaces_size = len(x.spaces)
      ret.spaces_key = c_str_array(x.spaces.keys())
      ret.spaces_val = c_array(
          CConfigSpace, [c_config_space(c) for c in x.spaces.values()]
      )
      return ret
  
file_path: mxnet/python/mxnet/_ctypes/space.py
imports: import ctypes
  from ..base import _LIB
  from ..base import c_str_array, c_array
  from ..base import check_call
label_desc: Use image node_id 4 for calling a global function with example usage: c_config_spaces(x) and returns: ret