code: def test_bool():
      false = pa.scalar(False)
      true = pa.scalar(True)
  
      assert isinstance(false, pa.BooleanScalar)
      assert isinstance(true, pa.BooleanScalar)
  
      assert repr(true) == "<pyarrow.BooleanScalar: True>"
      assert str(true) == "True"
      assert repr(false) == "<pyarrow.BooleanScalar: False>"
      assert str(false) == "False"
  
      assert true.as_py() is True
      assert false.as_py() is False
  
imports: import datetime
  import decimal
  import pytest
  import sys
  import weakref
  import numpy
  import pyarrow
  import pyarrow.compute
  from pyarrow.tests import util
label_desc: Use image node_id 8 for calling a global function with example usage: test_bool() without return types