code: def set_format_options(fmt, format_options):
      """Apply the desired format options to the format description fmt"""
      if not format_options:
          return
  
      for opt in format_options:
          try:
              key, value = opt.split("=")
          except ValueError as err:
              raise ValueError(
                  "Format options are expected to be of the form key=value, not '{}'".format(
                      opt
                  )
              ) from err
  
          if key not in _VALID_FORMAT_OPTIONS:
              raise ValueError(
                  "'{}' is not a valid format option. Expected one of '{}'".format(
                      key, "', '".join(_VALID_FORMAT_OPTIONS)
                  )
              )
  
          if key in _BINARY_FORMAT_OPTIONS:
              value = str2bool(value)
  
          fmt[key] = value
  
imports: import argparse
  import glob
  import json
  import os
  import re
  import shlex
  import subprocess
  import sys
  import warnings
  from copy import copy
  from tempfile import NamedTemporaryFile
  from .combine import combine_inputs_with_outputs
  from .compare import NotebookDifference, compare, test_round_trip_conversion
  from .config import load_jupytext_config, notebook_formats
  from .formats import _BINARY_FORMAT_OPTIONS, _VALID_FORMAT_OPTIONS, JUPYTEXT_FORMATS, check_auto_ext, check_file_version, long_form_multiple_formats, long_form_one_format, short_form_one_format
  from .header import recursive_update
  from .jupytext import create_prefix_dir, read, reads, write, writes
  from .kernels import find_kernel_specs, get_kernel_spec, kernelspec_from_language
  from .languages import _SCRIPT_EXTENSIONS
  from .paired_paths import InconsistentPath, base_path, find_base_path_and_format, full_path, paired_paths
  from .pairs import latest_inputs_and_outputs, read_pair, write_pair
  from .version import __version__
label_desc: Use image node_id 10 for calling a global function with example usage: set_format_options(fmt, format_options) without return types