code: def _Normalize(array: pa.Array) -> pa.Array:
      """Round trips array through python objects.
  
      Comparing nested arrays with slices is buggy in Arrow 2.0 this method
      is useful comparing two such arrays for logical equality. The bugs
      appears to be fixed as of Arrow 5.0 this should be removable once that
      becomes the minimum version.
  
      Args:
        array: The array to normalize.
  
      Returns:
        An array that doesn't have any more zero copy slices in itself or
        it's children. Note the schema might be slightly different for
        all null arrays.
      """
      return pa.array(array.to_pylist())
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from typing import Dict, Iterable, NamedTuple
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import pyarrow
  import six
  from tensorflow_data_validation import types
  from tensorflow_data_validation.arrow import arrow_util
  from tensorflow_data_validation.utils.example_weight_map import ExampleWeightMap
  from tfx_bsl.arrow import array_util
  from tfx_bsl.types import tfx_namedtuple
label_desc: Use image node_id 5 for calling a global function with example usage: _Normalize(array) and returns: pa