code: def test_resample_with_timedelta_yields_no_empty_groups(duplicates):
      # GH 10603
      df = DataFrame(
          np.random.default_rng(2).normal(size=(10000, 4)),
          index=timedelta_range(
              start="0s", periods=10000, freq="3906250ns"
          ),
      )
      if duplicates:
          # case with non-unique columns
          df.columns = ["A", "B", "A", "C"]
  
      result = df.loc["1s":, :].resample("3s").apply(lambda x: len(x))
  
      expected = DataFrame(
          [[768] * 4] * 12 + [[528] * 4],
          index=timedelta_range(start="1s", periods=13, freq="3s"),
      )
      expected.columns = df.columns
      tm.assert_frame_equal(result, expected)
  
imports: from datetime import timedelta
  import numpy
  import pytest
  import pandas.util._test_decorators
  import pandas
  from pandas import DataFrame, Series
  import pandas._testing
  from pandas.core.indexes.timedeltas import timedelta_range
label_desc: Use image node_id 11 for calling a global function with example usage: test_resample_with_timedelta_yields_no_empty_groups(duplicates) without return types