input: Write a function that takes a list of objects, each containing an 'id' and 'inputs' field. The function should calculate the sum of the 'inputs' for each object and return a list of results where each result includes the object's 'id' and the calculated sum. If the input list is empty, the function should return an empty list.
  
  def calculate_result(obj_list):
   result_list = []
  
   for obj in obj_list:
    result = {}
    result['id'] = obj['id']
    result['result'] = sum(obj['inputs'])
  
    result_list.append(result)
  
   return result_list
  
  obj_list = [{"id": 1, "inputs": [1,2,3]}, 
  {"id": 2, "inputs": [2,3,4]}]
  
  assert calculate_result(obj_list) == [{'id': 1, 'result': 6}, {'id': 2, 'result': 9}]
  
  empty_list = []
  
  assert calculate_result(empty_list) == []
output: def calculate_result(obj_list):
   result_list = []
  
   for obj in obj_list:
    result = {}
    result['id'] = obj['id']
    result['result'] = sum(obj['inputs'])
  
    result_list.append(result)
  
   return result_list