input: Write a python function to simulate a shopping cart system with the functionalities to add items, remove items, get the total cost, and retrieve the list of items.
  assert isinstance(ShoppingCart(), ShoppingCart)
  cart = ShoppingCart()
  cart.add_item({'name': 'apple', 'price': 1.5})
  cart.add_item({'name': 'banana', 'price': 2.0})
  assert cart.get_total() == 3.5
  assert cart.get_items() == [{'name': 'apple', 'price': 1.5}, {'name': 'banana', 'price': 2.0}]
  cart.remove_item({'name': 'apple', 'price': 1.5})
  assert cart.get_total() == 2.0
  assert cart.get_items() == [{'name': 'banana', 'price': 2.0}]
output: class ShoppingCart:
      def __init__(self):
          self.items = []
  
      def add_item(self, item):
          self.items.append(item)
  
      def remove_item(self, item):
          self.items.remove(item)
  
      def get_total(self):
          return sum(item['price'] for item in self.items)
  
      def get_items(self):
          return self.items