code: def convert_history(history_data):
      history = []
      for h in history_data:
          step = h["step"]
          data = h["data"]
          data["_step"] = step
          history.append(data)
      return history
  
label_desc: Use image node_id 2 for calling a global function with example usage: convert_history(history_data) and returns: history