code: def to_string(self):
      output = "Simulation Result\n-----------------\n"
      if self.finish_time < math.inf:
          output = f"{output} Finish Time: {self.finish_time} seconds\n"
          for i in range(0, len(self.energy_remaining)):
              output = f"{output} Cyclist {i+1} Energy Remaining: {self.energy_remaining[i]} joules\n"
      else:
          output = f"{output} Riders had insufficient energy for race completion\nProportion of race completed: {self.proportion_completed * 100}%\n"
      return output
  
file_path: nevergrad/nevergrad/functions/cycling/simulationresult.py
imports: import math
label_desc: Use image node_id 6 for calling the simulationresult obj's underlying member method code with example usage: obj.to_string() and returns: output