code: def test_custom_arrow_data_serializer_disable(shutdown_only):
      ray.shutdown()
      ray.worker._post_init_hooks = []
      context = ray.worker.global_worker.get_serialization_context()
      context._unregister_cloudpickle_reducer(pa.Table)
      # Disable custom Arrow array serialization.
      os.environ["RAY_DISABLE_CUSTOM_ARROW_ARRAY_SERIALIZATION"] = "1"
      ray.init()
      # Create a zero-copy slice view of table.
      t = pa.table({"a": list(range(10000000))})
      view = t.slice(10, 10)
      s_t = pickle.dumps(t)
      s_view = pickle.dumps(view)
      # Check that the slice view contains the full buffer of the underlying array.
      d_view = pickle.loads(s_view)
      assert (
          d_view["a"].chunk(0).buffers()[1].size
          == t["a"].chunk(0).buffers()[1].size
      )
      # Check that the serialized slice view is large
      assert len(s_view) > 0.8 * len(s_t)
  
imports: import logging
  import os
  import sys
  from unittest import mock
  import numpy
  import pyarrow
  import pyarrow.parquet
  import pytest
  from packaging.version import parse
  from pytest_lazyfixture import lazy_fixture
  import ray
  import ray.cloudpickle
  from ray._private.arrow_serialization import _align_bit_offset, _bytes_for_bits, _copy_bitpacked_buffer_if_needed, _copy_buffer_if_needed, _copy_normal_buffer_if_needed, _copy_offsets_buffer_if_needed
  from ray._private.utils import _get_pyarrow_version
  from ray.data.extensions.tensor_extension import ArrowTensorArray, ArrowVariableShapedTensorArray
  from ray.tests.conftest import *
label_desc: Use image node_id 37 for calling a global function with example usage: test_custom_arrow_data_serializer_disable(shutdown_only) without return types