code: def get_cell_sources(source):
      import nbformat
  
      nb = nbformat.reads(source, as_version=nbformat.NO_CONVERT)
  
      return [cell["source"] for cell in nb["cells"]]
  
imports: from abc import abstractmethod
  import os
  from pathlib import Path
  import tempfile
  import re
  from snakemake.exceptions import WorkflowError
  from snakemake.script import get_source, ScriptBase, PythonScript, RScript
  from snakemake.logging import logger
  from snakemake.common import is_local_file
  from snakemake.common import ON_WINDOWS
  from snakemake.sourcecache import SourceCache, infer_source_file
  from snakemake.utils import format
label_desc: Use image node_id 1 for calling a global function with example usage: get_cell_sources(source) and returns: unknown