code: def test_get_default_horizon_from_period():
      """Tests get_default_horizon_from_period function"""
      assert get_default_horizon_from_period(60.0) == 60  # 1 min
      assert get_default_horizon_from_period(300.0) == 60  # 5 min
      assert get_default_horizon_from_period(3600.0) == 24  # 1 hour
      assert (
          get_default_horizon_from_period(6 * 3600.0) == 24
      )  # 6 hours
      assert get_default_horizon_from_period(24 * 3600.0) == 30  # 1 day
      assert (
          get_default_horizon_from_period(7 * 24 * 3600.0) == 12
      )  # 1 week
      assert (
          get_default_horizon_from_period(
              7 * 24 * 3600.0, num_observations=10
          )
          == 5
      )
      assert (
          get_default_horizon_from_period(
              7 * 24 * 3600.0, num_observations=30
          )
          == 12
      )
  
file_path: greykite/greykite/tests/common/test_time_properties_forecast.py
imports: import datetime
  from datetime import timedelta
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import VALUE_COL
  from greykite.common.enums import SimpleTimeFrequencyEnum
  from greykite.common.enums import TimeEnum
  from greykite.common.features.timeseries_features import get_default_origin_for_time_vars
  from greykite.common.testing_utils import generate_df_for_tests
  from greykite.common.testing_utils import generate_df_with_reg_for_tests
  from greykite.common.time_properties_forecast import get_default_horizon_from_period
  from greykite.common.time_properties_forecast import get_forecast_time_properties
  from greykite.common.time_properties_forecast import get_simple_time_frequency_from_period
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_default_horizon_from_period() without return types