code: def get_calls_from_doc(doc):
      """
      Parses a docstring looking for indented blocks that start with $.
      It returns the first lines as call and the rest of the blocks as outputs.
      """
      if doc is None:
          return []
      calls = []
      outputs = []
      out = []
      block_indent = 2
      for line in doc.split("\n"):
          if BLOCK_START.match(line):
              block_indent = line.find("$")
              calls.append(shlex.split(line[block_indent + 1 :]))
              out = []
              outputs.append(out)
          elif line.startswith(" " * block_indent):
              out.append(line[block_indent:])
          else:
              out = []
  
      return zip(calls, outputs)
  
file_path: sacred/tests/conftest.py
imports: import pytest
  import tempfile
  import hashlib
  import os.path
  import re
  import shlex
  import sys
  import warnings
  from importlib import reload
  from sacred.settings import SETTINGS
label_desc: Use image node_id 1 for calling a global function with example usage: get_calls_from_doc(doc) and returns: zip, list