code: def test_to_partial_copresence_counts_unweighted(self):
      t = pa.RecordBatch.from_arrays(
          [
              pa.array([[1], [2], [1]]),
              pa.array([["a"], ["a"], ["b"]]),
          ],
          ["x", "y"],
      )
      x_path = types.FeaturePath(["x"])
      expected_counts = [
          (
              lift_stats_generator._SlicedXYKey(
                  "", x_path.steps(), x=1, y="a"
              ),
              1,
          ),
          (
              lift_stats_generator._SlicedXYKey(
                  "", x_path.steps(), x=1, y="b"
              ),
              1,
          ),
          (
              lift_stats_generator._SlicedXYKey(
                  "", x_path.steps(), x=2, y="a"
              ),
              1,
          ),
      ]
      actual_counts = list(
          lift_stats_generator._to_partial_copresence_counts(
              ("", t),
              y_path=types.FeaturePath(["y"]),
              x_paths=[types.FeaturePath(["x"])],
              y_boundaries=None,
              example_weight_map=ExampleWeightMap(),
          )
      )
      self.assertSameElements(expected_counts, actual_counts)
  
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 ToPartialCopresenceCountsTest obj's underlying member method code with example usage: obj.test_to_partial_copresence_counts_unweighted() without return types