input: Write a python function to calculate the total cost of items including tax and shipping cost.
  assert calculate_cost([('item1', 2, 10), ('item2', 1, 20)], 0.1, 5) == 39.0
  assert calculate_cost([('item1', 1, 15), ('item2', 2, 25)], 0.05, 10) == 80.75
  assert calculate_cost([('item1', 3, 5), ('item2', 4, 10)], 0.2, 0) == 66.0
output: def calculate_cost(items, tax_rate, shipping_cost):
      total_cost = 0
      for item in items:
          name, quantity, price = item
          total_cost += quantity * price
      total_cost += total_cost * tax_rate
      total_cost += shipping_cost
      return total_cost