code: def test_frame():
      return DataFrame(
          {"A": [1] * 20 + [2] * 12 + [3] * 8, "B": np.arange(40)},
          index=date_range("1/1/2000", freq="s", periods=40),
      )
  
imports: from textwrap import dedent
  import numpy
  import pytest
  from pandas.compat import is_platform_windows
  import pandas
  from pandas import DataFrame, Index, Series, TimedeltaIndex, Timestamp
  import pandas._testing
  from pandas.core.indexes.datetimes import date_range
label_desc: Use image node_id 1 for calling a global function with example usage: test_frame() and returns: DataFrame