code: def test_is_uniform_2H():
      timestamps = [
          "2021-01-01 00:00",
          "2021-01-01 02:00",
          "2021-01-01 04:00",
      ]
      assert pandas.is_uniform(
          pd.DatetimeIndex(timestamps).to_period("2H")
      )
  
imports: import io
  from typing import Callable, List, Union
  import pandas
  import numpy
  import pytest
  from gluonts.dataset import pandas
  from gluonts.testutil.equality import assert_recursively_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_is_uniform_2H() without return types