code: def add_cell(nb, lines, cell_type):
      cell_objs = {
          "code": nbformat.v4.new_code_cell,
          "markdown": nbformat.v4.new_markdown_cell,
      }
      text = "\n".join(lines)
      cell = cell_objs[cell_type](text)
      nb["cells"].append(cell)
  
file_path: seaborn/doc/tools/extract_examples.py
imports: import re
  import sys
  import pydoc
  import seaborn
  from seaborn.external.docscrape import NumpyDocString
  import nbformat
label_desc: Use image node_id 2 for calling a global function with example usage: add_cell(nb, lines, cell_type) without return types