code: def reload_settings(*args, **kwargs):  # pragma: no cover
      
      # pylint: disable=W0603
      global swagger_settings
  
      if kwargs['setting'] == 'LOGIN_URL':
          swagger_settings.LOGIN_URL = kwargs['value']
      if kwargs['setting'] == 'LOGOUT_URL':
          swagger_settings.LOGOUT_URL = kwargs['value']
      if kwargs['setting'] != 'SWAGGER_SETTINGS':
          return
  
      swagger_settings = APISettings(
          kwargs['value'],
          DEFAULTS,
          IMPORT_STRINGS
      )
docs: Reloads settings during unit tests if override_settings decorator
      is used. (Taken from DRF)