code: def trainable(config: dict):
      final_score = 0
      for x in range(20):
          final_score = objective(x, config["a"], config["b"])
  
      return {"score": final_score}
  
file_path: ray/doc/source/tune/doc_code/trainable.py
imports: from ray import train, tune
  from ray import train, tune
  from ray import train, tune
label_desc: Use image node_id 4 for calling a global function with example usage: trainable(config) and returns: dict