code: def test_basic_stats_generator_different_nest_levels(self):
      batches = [
          pa.RecordBatch.from_arrays([pa.array([[1]])], ["a"]),
          pa.RecordBatch.from_arrays([pa.array([[[1]]])], ["a"]),
      ]
      generator = basic_stats_generator.BasicStatsGenerator()
      with self.assertRaisesRegex(
          ValueError,
          "Unable to merge common stats with different nest levels",
      ):
          self.assertCombinerOutputEqual(batches, generator, None)
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import pyarrow
  from tensorflow_data_validation import types
  from tensorflow_data_validation.statistics.generators import basic_stats_generator
  from tensorflow_data_validation.utils import test_util
  from tensorflow_data_validation.utils.example_weight_map import ExampleWeightMap
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import schema_pb2
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 2 for calling the BasicStatsGeneratorNestedListTest obj's underlying member method code with example usage: obj.test_basic_stats_generator_different_nest_levels() without return types