code: def test_bash():
      try:
          proc = run(
              ["bash", "-n", "misc/completion/ocrmypdf.bash"],
              check=True,
              encoding="utf-8",
              capture_output=True,
          )
          assert proc.stderr == "", proc.stderr
      except FileNotFoundError:
          pytest.xfail("bash is not installed")
  
imports: from __future__ import annotations
  import os
  from subprocess import run
  import pytest
  from .conftest import running_in_docker
label_desc: Use image node_id 2 for calling a global function with example usage: test_bash() without return types