code: def testEnumerateArraysStringWeight(self):
      # The arrow type of a string changes between py2 and py3 so we accept either
      with self.assertRaisesRegex(
          ValueError,
          r'Weight column "w" must be of numeric type. Found (string|binary).*',
      ):
          for _ in arrow_util.enumerate_arrays(
              pa.RecordBatch.from_arrays(
                  [pa.array([[1], [2, 3]]), pa.array([["a"], ["b"]])],
                  ["v", "w"],
              ),
              example_weight_map=ExampleWeightMap(
                  weight_feature="w", per_feature_override=None
              ),
              enumerate_leaves_only=True,
          ):
              pass
  
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 6 for calling the ArrowUtilTest obj's underlying member method code with example usage: obj.testEnumerateArraysStringWeight() without return types