code: def test_feature_unnormalized_bounds(
      feature: TimeFeature, pd_index: pd.DatetimeIndex, cardinality: int
  ):
      zb_index = zb.periods(
          pd_index[0], pd_index.freqstr, len(pd_index)
      )
  
      for index in pd_index, zb_index:
          values = feature(index)
          assert isinstance(values, np.ndarray)
          counts = [0] * cardinality
          for v in values:
              assert 0 <= int(v) < cardinality
              counts[int(v)] += 1
          assert all(c > 0 for c in counts)
  
      assert np.array_equal(feature(zb_index), feature(pd_index))
  
imports: import numpy
  import pandas
  import pytest
  from gluonts import zebras
  from gluonts.time_feature import Constant, TimeFeature, day_of_month, day_of_month_index, day_of_week, day_of_week_index, day_of_year, day_of_year_index, hour_of_day, hour_of_day_index, minute_of_hour, minute_of_hour_index, month_of_year, month_of_year_index, second_of_minute, second_of_minute_index, week_of_year, week_of_year_index
label_desc: Use image node_id 2 for calling a global function with example usage: test_feature_unnormalized_bounds(feature, pd_index, cardinality) without return types