code: def test_round_trip_conversion(
      notebook,
      fmt,
      update,
      allow_expected_differences=True,
      stop_on_first_error=True,
  ):
      """Test round trip conversion for a Jupyter notebook"""
      text = writes(notebook, fmt)
      round_trip = reads(text, fmt)
  
      if update:
          round_trip = combine_inputs_with_outputs(
              round_trip, notebook, fmt
          )
  
      compare_notebooks(
          round_trip,
          notebook,
          fmt,
          allow_expected_differences,
          raise_on_first_difference=stop_on_first_error,
      )
  
imports: import difflib
  import json
  import os
  import re
  from jupytext.paired_paths import full_path
  from .cell_metadata import _IGNORE_CELL_METADATA
  from .combine import combine_inputs_with_outputs
  from .formats import check_auto_ext, long_form_one_format
  from .header import _DEFAULT_NOTEBOOK_METADATA
  from .jupytext import read, reads, write, writes
  from .metadata_filter import filter_metadata
label_desc: Use image node_id 8 for calling a global function with example usage: test_round_trip_conversion(notebook, fmt, update, allow_expected_differences, stop_on_first_error) without return types