input: Write a function to calculate the result for each object in a list by summing up the values in the 'inputs' field and including the object's ID in the output. The function should return a list of dictionaries, each containing the object's ID and the calculated result. If the input 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,2,1]}, {"id": 4, "inputs": [3,0,3]}])==[{'id': 3, 'result': 8}, {'id': 4, 'result': 6}]
  assert calculate_result([])==[]
  assert calculate_result([{"id": 5, "inputs": [0]}])==[{'id': 5, 'result': 0}]
  assert calculate_result([{"id": 6, "inputs": []}])==[{'id': 6, 'result': 0}]
output: def calculate_result(objects):
      return [{'id': obj['id'], 'result': sum(obj['inputs'])} for obj in objects]