code: def test_deprecated_options_cause_warning(tmpdir, option_name):
      jupytext_toml = tmpdir.join("jupytext.toml")
      jupytext_toml.write(f"default_{option_name} = 'value'")
      config = load_jupytext_configuration_file(str(jupytext_toml))
      fmt = {}
      with pytest.warns(FutureWarning, match=f"use '{option_name}'"):
          config.set_default_format_options(fmt)
          assert fmt[option_name] == "value"
  
file_path: jupytext/tests/functional/config/test_config.py
imports: import os
  import pytest
  from jupytext.config import find_jupytext_configuration_file, load_jupytext_configuration_file
label_desc: Use image node_id 6 for calling a global function with example usage: test_deprecated_options_cause_warning(tmpdir, option_name) without return types