input: Write a python function to check products for defects based on their cost.
  assert check_products([(1, 10, 5), (2, 8, 1), (3, 5, 10)]) == {2: [8, 1, 8]}
  assert check_products([(4, 20, 0.5), (5, 15, 1.5), (6, 10, 2)]) == {4: [20, 0.5, 10]}
  assert check_products([(7, 7, 3), (8, 6, 2.5), (9, 9, 1)]) == {9: [9, 1, 9]}
output: def check_products(products):
      defect_threshold = 2
      defect_products = {}
  
      for product in products:
          id, cost, defect_cost = product
          if cost / defect_cost >= defect_threshold:
              defect_products[id] = [cost, defect_cost, cost]
  
      return defect_products