code: def options_policy(skip_invalid, warn_on_skip):
      
      settings = (Options.skip_invalid, Options.warn_on_skip)
      (Options.skip_invalid, Options.warn_on_skip) = (skip_invalid, warn_on_skip)
      yield
      (Options.skip_invalid, Options.warn_on_skip) = settings
docs: Context manager to temporarily set the skip_invalid and warn_on_skip
      class parameters on Options.