code: def _get_args(cls, **kwargs):
          
          csl_args = {
              'style': cls._default_style,
              'locale': cls._default_locale
          }
  
          if has_request_context():
              parser = FlaskParser(locations=('view_args', 'query'))
              csl_args.update(parser.parse(cls._user_args, request))
  
          csl_args.update({k: kwargs[k]
                           for k in ('style', 'locale') if k in kwargs})
  
          try:
              csl_args['style'] = get_style_filepath(csl_args['style'].lower())
          except StyleNotFoundError:
              if has_request_context():
                  raise StyleNotFoundRESTError(csl_args['style'])
              raise
          return csl_args
docs: Parse style and locale.
  
          Argument location precedence: kwargs > view_args > query