code: def is_inline(elem):
      return elem.t in (
          "heading",
          "emph",
          "strong",
          "link",
          "image",
          "custom_inline",
      )
  
imports: import argparse
  import commonmark
  import nbformat
  import os
  import re
  import subprocess
  import sys
  import textwrap
  from pathlib import Path
label_desc: Use image node_id 8 for calling a global function with example usage: is_inline(elem) and returns: unknown