code: def test_list_aggregation_that_filters_all_data_6017() -> None:
      out = (
          pl.DataFrame(
              {
                  "col_to_group_by": [2],
                  "flt": [1672740910.967138],
                  "col3": [1],
              }
          )
          .group_by("col_to_group_by")
          .agg(
              (pl.col("flt").filter(col3=0).diff() * 1000)
              .diff()
              .alias("calc")
          )
      )
  
      assert out.schema == {
          "col_to_group_by": pl.Int64,
          "calc": pl.List(pl.Float64),
      }
      assert out.to_dict(as_series=False) == {
          "col_to_group_by": [2],
          "calc": [[]],
      }
  
imports: from __future__ import annotations
  from datetime import date, datetime, timedelta
  from typing import TYPE_CHECKING, Any
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 5 for calling a global function with example usage: test_list_aggregation_that_filters_all_data_6017() without return types