input: Write a function that takes a list of objects where each object has an 'id' and 'inputs' fields, and returns a list of results where each result includes the object's 'id' and the sum of the 'inputs'. If the list is empty, the function should return an empty list.
  assert calculate_result([{'id': 1, 'inputs': [1,2,3]}, {'id': 2, 'inputs': [2,3,4]}])==[{'id': 1, 'result': 6}, {'id': 2, 'result': 9}]
  assert calculate_result([{'id': 3, 'inputs': [5,5,5]}])==[{'id': 3, 'result': 15}]
  assert calculate_result([])==[]
output: def calculate_result(objects):
      return [{'id': obj['id'], 'result': sum(obj['inputs'])} for obj in objects]