code: def test_is_first_distinct_bool_bit_chunk_index_calc() -> None:
      # The fast path activates on sizes >=64 and processes in chunks of 64-bits.
      # It calculates the indexes using the bit counts, which needs to be from the
      # correct side.
      assert pl.arange(0, 64, eager=True).filter(
          pl.Series([True] + 63 * [False]).is_first_distinct()
      ).to_list() == [0, 1]
  
      assert pl.arange(0, 64, eager=True).filter(
          pl.Series([False] + 63 * [True]).is_first_distinct()
      ).to_list() == [0, 1]
  
      assert pl.arange(0, 64, eager=True).filter(
          pl.Series(
              2 * [True] + 2 * [False] + 60 * [None]
          ).is_first_distinct()
      ).to_list() == [0, 2, 4]
  
      assert pl.arange(0, 64, eager=True).filter(
          pl.Series(
              2 * [False] + 2 * [None] + 60 * [True]
          ).is_first_distinct()
      ).to_list() == [0, 2, 4]
  
file_path: polars/py-polars/tests/unit/operations/test_is_first_last_distinct.py
imports: import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_is_first_distinct_bool_bit_chunk_index_calc() without return types