input: Write a function to generate a set of Python functions that take inputs values from a list of objects and output a result. The output for each object should include the object's ID and the calculated results from the given inputs.
  assert calculate_result([{"id": 1, "inputs": [1,2,3]}, {"id": 2, "inputs": [2,3,4]}])==[{'id': 1, 'result': 6}, {'id': 2, 'result': 9}]
output: def calculate_result(objects):
      return [{'id': obj['id'], 'result': sum(obj['inputs'])} for obj in objects]