code: def convert_js_bool(py_bool):
      if type(py_bool) is bool:
          return py_bool
      return "true" if py_bool else "false"
  
file_path: deck.gl/bindings/pydeck/pydeck/io/html.py
imports: import html
  import os
  from os.path import realpath, join, dirname
  import sys
  import time
  import warnings
  import webbrowser
  import jinja2
  from ..frontend_semver import DECKGL_SEMVER
label_desc: Use image node_id 2 for calling a global function with example usage: convert_js_bool(py_bool) and returns: unknown, py_bool