code: def shipping_rate(context, **kwargs):
      
      settings = Configuration.for_site(context["request"].site)
      code = kwargs.get('code', None)
      name = kwargs.get('name', None)
      return get_shipping_cost(settings, code, name)
docs: Return the shipping rate for a country & shipping option name.