code: def test_ext_commands(tmpdir) -> None:
      tmp = str(tmpdir.mkdir("bk_ext_01"))
  
      assert _names(tmp) == []
  
      assert ext.init(tmp, bokehjs_version="3.0.0") is True
      assert _names(tmp) == [
          "bokeh.ext.json",
          "index.ts",
          "package.json",
          "tsconfig.json",
      ]
  
      assert ext.build(tmp) is True
      assert _names(tmp) == [
          ".bokeh",
          "bokeh.ext.json",
          "dist",
          "index.ts",
          "node_modules",
          "package-lock.json",
          "package.json",
          "tsconfig.json",
      ]
  
      assert ext.init(tmp) is False
  
imports: from __future__ import annotations
  import pytest
  import os
  import bokeh.ext
label_desc: Use image node_id 1 for calling a global function with example usage: test_ext_commands(tmpdir) without return types