code: def test_add_source_map():
      notebook = myst_to_notebook(
          dedent(
              """\
              ---
              a: 1
              ---
              abc
              +++
              def
              ```{0}
              ---
              b: 2
              ---
              c = 3
              ```
              xyz
              """
          ).format(CODE_DIRECTIVE),
          add_source_map=True,
      )
      assert notebook.metadata.source_map == [3, 5, 7, 12]
  
imports: import json
  import unittest.mock
  from textwrap import dedent
  import pytest
  from nbformat.v4.nbbase import new_notebook
  from tornado.web import HTTPError
  import jupytext
  from jupytext.cli import jupytext
  from jupytext.compare import compare
  from jupytext.formats import JupytextFormatError, get_format_implementation, guess_format
  from jupytext.myst import CODE_DIRECTIVE, MystMetadataParsingError, matches_mystnb, myst_extensions, myst_to_notebook
label_desc: Use image node_id 7 for calling a global function with example usage: test_add_source_map() without return types