code: def method(self, quote_id, shipping_method, store_view=None):
          
          return bool(
              self.call('cart_shipping.method',
                  [quote_id, shipping_method, store_view])
          )
docs: Allows you to set a shipping method for a shopping cart (quote).
  
          :param quote_id: Shopping cart ID (quote ID)
          :param shipping_method, string, shipping method code
          :param store_view: Store view ID or code
          :return: boolean, True if the shipping method is set