code: def test_as_boolean(val, default, expected):
      assert util.as_boolean(val, default=default) == expected
  
imports: import pytest
  from lets_plot.plot import util
label_desc: Use image node_id 1 for calling a global function with example usage: test_as_boolean(val, default, expected) without return types