code: def signed_token_generator(private_pem, **kwargs):
      
      def signed_token_generator(request):
          request.claims = kwargs
          return common.generate_signed_token(private_pem, request)
  
      return signed_token_generator
docs: :param private_pem: