class_docstr: Jupytext Configuration's options
docstr: Set default format option
docstr_tok: ["Set","default","format","option"]
code: def set_default_format_options(self, format_options, read=False):
      """Set default format option"""
      if self.default_notebook_metadata_filter:
          warnings.warn(
              "The option 'default_notebook_metadata_filter' is deprecated. "
              "Please use 'notebook_metadata_filter' instead.",
              FutureWarning,
          )
          format_options.setdefault(
              "notebook_metadata_filter",
              self.default_notebook_metadata_filter,
          )
      if self.notebook_metadata_filter:
          format_options.setdefault(
              "notebook_metadata_filter", self.notebook_metadata_filter
          )
      if self.default_cell_metadata_filter:
          warnings.warn(
              "The option 'default_cell_metadata_filter' is deprecated. "
              "Please use 'cell_metadata_filter' instead.",
              FutureWarning,
          )
          format_options.setdefault(
              "cell_metadata_filter", self.default_cell_metadata_filter
          )
      if self.cell_metadata_filter:
          format_options.setdefault(
              "cell_metadata_filter", self.cell_metadata_filter
          )
      if self.hide_notebook_metadata is not None:
          format_options.setdefault(
              "hide_notebook_metadata", self.hide_notebook_metadata
          )
      if self.root_level_metadata_as_raw_cell is False:
          format_options.setdefault(
              "root_level_metadata_as_raw_cell",
              self.root_level_metadata_as_raw_cell,
          )
      if self.comment_magics is not None:
          format_options.setdefault(
              "comment_magics", self.comment_magics
          )
      if self.split_at_heading:
          format_options.setdefault(
              "split_at_heading", self.split_at_heading
          )
      if self.doxygen_equation_markers:
          format_options.setdefault(
              "doxygen_equation_markers", self.doxygen_equation_markers
          )
      if not read:
          if self.default_cell_markers:
              warnings.warn(
                  "The option 'default_cell_markers' is deprecated. "
                  "Please use 'cell_markers' instead.",
                  FutureWarning,
              )
              format_options.setdefault(
                  "cell_markers", self.default_cell_markers
              )
          if self.cell_markers:
              format_options.setdefault(
                  "cell_markers", self.cell_markers
              )
      if read and self.sphinx_convert_rst2md:
          format_options.setdefault(
              "rst2md", self.sphinx_convert_rst2md
          )
      if self.custom_cell_magics:
          format_options.setdefault(
              "custom_cell_magics", self.custom_cell_magics
          )
  
imports: import json
  import os
  import warnings
  import yaml
  from traitlets import Bool, Dict, Enum, Float, List, Unicode, Union
  from traitlets.config import Configurable
  from traitlets.config.loader import PyFileConfigLoader
  from traitlets.traitlets import TraitError
  from .formats import NOTEBOOK_EXTENSIONS, long_form_multiple_formats, long_form_one_format, short_form_multiple_formats
label_desc: Use image node_id 1 for calling the JupytextConfiguration obj's underlying member method code with example usage: obj.set_default_format_options(format_options, read) without return types