code: def prepare_params(req: snug.Request) -> snug.Request:
      
      return req.replace(
          params={key: dump_param(val) for key, val in req.params.items()
                  if val is not None})
docs: prepare request parameters