code: def objective(trial):
      if trial.number > 4:
          raise optuna.TrialPruned
  
      return trial.suggest_float("x", 0, 1)
  
imports: import optuna
  import logging
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: objective(trial) and returns: trial