input: Write a function to generate a set of Python functions that take input 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. The function should return a list of dictionaries, each containing the object's ID and the result.
  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": [10,20]}, {"id": 4, "inputs": [5,5]}])==[{'id': 3, 'result': 30}, {'id': 4, 'result': 10}]
  assert calculate_result([])==[]
  assert calculate_result([{"id": 5, "inputs": [1]}, {"id": 6, "inputs": [2]}])==[{'id': 5, 'result': 1}, {'id': 6, 'result': 2}]
output: def calculate_result(objects):
      return [{'id': obj['id'], 'result': sum(obj['inputs'])} for obj in objects]