code: def test_write_config(settings_file, sample_viewer_config):
      labconfig = LabConfig(settings_file=settings_file)
      labconfig.set_default_viewers()
      labconfig.write()
      assert (
          json.loads(settings_file.read_text()) == sample_viewer_config
      )
  
file_path: jupytext/tests/unit/test_labconfig.py
imports: import json
  import pytest
  from jupytext_config.labconfig import LabConfig
label_desc: Use image node_id 6 for calling a global function with example usage: test_write_config(settings_file, sample_viewer_config) without return types