code: def test_nested_list(
      self, batches, expected_result, weight_column=None
  ):
      generator = basic_stats_generator.BasicStatsGenerator(
          num_values_histogram_buckets=2,
          num_histogram_buckets=3,
          num_quantiles_histogram_buckets=4,
          example_weight_map=ExampleWeightMap(
              weight_feature=weight_column
          ),
      )
      expected_result = {
          path: text_format.Parse(
              pbtxt, statistics_pb2.FeatureNameStatistics()
          )
          for path, pbtxt in expected_result.items()
      }
      self.assertCombinerOutputEqual(
          batches,
          generator,
          expected_result,
          only_match_expected_feature_stats=True,
      )
  
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 1 for calling the BasicStatsGeneratorNestedListTest obj's underlying member method code with example usage: obj.test_nested_list(batches, expected_result, weight_column) without return types