code: def test_arrow_variable_shaped_tensor_array_roundtrip_boolean():
      arr = np.array(
          [
              [True, False],
              [False, False, True],
              [False],
              [True, True, False, True],
          ],
          dtype=object,
      )
      ata = ArrowVariableShapedTensorArray.from_numpy(arr)
      assert isinstance(ata.type, ArrowVariableShapedTensorType)
      assert len(ata) == len(arr)
      out = ata.to_numpy()
      for o, a in zip(out, arr):
          np.testing.assert_array_equal(o, a)
  
imports: import itertools
  import numpy
  import pandas
  from packaging.version import parse
  import pyarrow
  import pytest
  from ray.air.util.tensor_extensions.arrow import ArrowTensorArray, ArrowTensorType, ArrowVariableShapedTensorArray, ArrowVariableShapedTensorType
  from ray.air.util.tensor_extensions.pandas import TensorArray, TensorDtype
  from ray.air.util.tensor_extensions.utils import create_ragged_ndarray
  from ray._private.utils import _get_pyarrow_version
label_desc: Use image node_id 8 for calling a global function with example usage: test_arrow_variable_shaped_tensor_array_roundtrip_boolean() without return types