code: def test_to_partial_x_counts_unweighted(self):
      t = pa.RecordBatch.from_arrays(
          [
              pa.array([[1], [2], [1]]),
          ],
          ["x"],
      )
      x_path = types.FeaturePath(["x"])
      expected_counts = [
          (
              lift_stats_generator._SlicedXYKey(
                  "", x_path.steps(), x=1, y=None
              ),
              2,
          ),
          (
              lift_stats_generator._SlicedXYKey(
                  "", x_path.steps(), x=2, y=None
              ),
              1,
          ),
      ]
      for (expected_key, expected_count), (
          actual_key,
          actual_count,
      ) in zip(
          expected_counts,
          lift_stats_generator._to_partial_x_counts(
              ("", t),
              x_paths=[types.FeaturePath(["x"])],
              example_weight_map=ExampleWeightMap(),
          ),
      ):
          self.assertEqual(
              str(expected_key.x_path), str(actual_key.x_path)
          )
          self.assertEqual(expected_key.x, actual_key.x)
          self.assertEqual(expected_count, actual_count)
  
imports: from typing import Optional, Sequence, Text
  from absl.testing import absltest
  import apache_beam
  import numpy
  import pandas
  import pyarrow
  from tensorflow_data_validation import types
  from tensorflow_data_validation.statistics.generators import lift_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 ToPartialXCountsTest obj's underlying member method code with example usage: obj.test_to_partial_x_counts_unweighted() without return types