code: def new_product(self, name):
          
          n = self._product_cls(self, name, summary_cls=self._summary_cls)
          self.graph.add_node(n)
          self.products.append(n)
          return n
docs: Create a new product.
  
          Args:
            name: name of the new product.
  
          Returns:
            A new product instance.