code: def get_exec_class(language):
      exec_class = {
          "jupyter_python": PythonJupyterNotebook,
          "jupyter_r": RJupyterNotebook,
      }.get(language, None)
      if exec_class is None:
          raise ValueError(
              "Unsupported notebook: Expecting Jupyter Notebook (.ipynb)."
          )
      return exec_class
  
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 2 for calling a global function with example usage: get_exec_class(language) and returns: exec_class