code: def version() -> Version:
      return Version(
          get_version("jbig2", regex=r"jbig2enc (\d+(\.\d+)*).*")
      )
  
file_path: OCRmyPDF/src/ocrmypdf/_exec/jbig2enc.py
imports: from __future__ import annotations
  from subprocess import PIPE
  from packaging.version import Version
  from ocrmypdf.exceptions import MissingDependencyError
  from ocrmypdf.subprocess import get_version, run
label_desc: Use image node_id 1 for calling a global function with example usage: version() and returns: Version