code: def test_design_matrix_for_one_seasonal_effect(self):
      self.assertAllEqual(
          np.transpose(
              [[1, 0, 0, 1, 0], [0, 1, 0, 0, 1], [0, 0, 1, 0, 0]]
          ),
          seasonality_util._design_matrix_for_one_seasonal_effect(
              num_steps=5, duration=1, period=3, dtype=np.int32
          ),
      )
      self.assertAllEqual(
          np.transpose([[1, 1, 0, 0, 1], [0, 0, 1, 1, 0]]),
          seasonality_util._design_matrix_for_one_seasonal_effect(
              num_steps=5, duration=2, period=2, dtype=np.int32
          ),
      )
  
file_path: probability/tensorflow_probability/python/sts/internal/seasonality_util_test.py
imports: from absl.testing import parameterized
  import numpy
  import pandas
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.sts.internal import seasonality_util
label_desc: Use image node_id 4 for calling the SeasonalityUtilsTest obj's underlying member method code with example usage: obj.test_design_matrix_for_one_seasonal_effect() without return types