code: def to_numpy(trials, space):
      """Convert trials in DataFrame to Numpy array of (params + objective)"""
      return trials[list(space.keys()) + ["objective"]].to_numpy()
  
file_path: orion/src/orion/analysis/base.py
imports: import itertools
  from functools import reduce
  import numpy
  import pandas
  from sklearn.ensemble import AdaBoostRegressor, BaggingRegressor, ExtraTreesRegressor, GradientBoostingRegressor, RandomForestRegressor
  from orion.core.utils import format_trials
  from orion.core.worker.transformer import build_required_space
label_desc: Use image node_id 4 for calling a global function with example usage: to_numpy(trials, space) and returns: trials