code: def test_boolean_nulls(version):
      # pandas requires upcast to object dtype
      path = random_path()
      TEST_FILES.append(path)
  
      num_values = 100
      np.random.seed(0)
  
      mask = np.random.randint(0, 10, size=num_values) < 3
      values = np.random.randint(0, 10, size=num_values) < 5
  
      table = pa.table([pa.array(values, mask=mask)], names=["bools"])
      _check_arrow_roundtrip(table)
  
      df = table.to_pandas()
      _check_pandas_roundtrip(df, version=version)
  
imports: import io
  import os
  import sys
  import tempfile
  import pytest
  import hypothesis
  import hypothesis.strategies
  import numpy
  import pyarrow
  import pyarrow.tests.strategies
  from pyarrow.feather import read_feather, write_feather, read_table, FeatherDataset
label_desc: Use image node_id 20 for calling a global function with example usage: test_boolean_nulls(version) without return types