code: def test_all_null_category(version):
      # ARROW-1188
      df = pd.DataFrame({"A": (1, 2, 3), "B": (None, None, None)})
      df = df.assign(B=df.B.astype("category"))
      _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 27 for calling a global function with example usage: test_all_null_category(version) without return types