code: def setup_xrates(base, rates):
      
  
      xrates.install('money.exchange.SimpleBackend')
      xrates.base = base
      for code, value in rates.items():
          xrates.setrate(code, value)
docs: If using the Python money package, this will set up the xrates exchange
      rate data.
  
      :param base:
          The string currency code to use as the base
  
      :param rates:
          A dict with keys that are string currency codes and values that are
          a Decimal of the exchange rate for that currency.