input: Write a python function to create an instance of the InventoryItem class and return its attributes as a dictionary.
  assert create_inventory_item("Apple", 1.2, 10) == {'name': 'Apple', 'cost': 1.2, 'quantity': 10}
  assert create_inventory_item("Banana", 0.5, 20) == {'name': 'Banana', 'cost': 0.5, 'quantity': 20}
  assert create_inventory_item("Orange", 0.8, 15) == {'name': 'Orange', 'cost': 0.8, 'quantity': 15}
output: def create_inventory_item(name, cost, quantity):
      class InventoryItem:
          def __init__(self, name, cost, quantity):
              self.name = name
              self.cost = cost
              self.quantity = quantity
  
      item = InventoryItem(name, cost, quantity)
      return {'name': item.name, 'cost': item.cost, 'quantity': item.quantity}