code: def get_simple_time_frequency_from_period(period):
      """Returns SimpleTimeFrequencyEnum based on input data period
      :param period: float
          Period of each observation (i.e. average time between observations, in seconds)
      :return: SimpleTimeFrequencyEnum
          SimpleTimeFrequencyEnum is used to define default values for horizon, seasonality, etc.
          (but original data frequency is not modified)
      """
      freq_threshold = [
          (
              SimpleTimeFrequencyEnum.MINUTE,
              10.05,
          ),  # <= 10 minutes is considered minute-level, buffer for abnormalities
          (
              SimpleTimeFrequencyEnum.HOUR,
              6.05,
          ),  # <= 6 hours is considered hourly, buffer for abnormalities
          (
              SimpleTimeFrequencyEnum.DAY,
              2.05,
          ),  # <= 2 days is considered daily, buffer for daylight savings
          (
              SimpleTimeFrequencyEnum.WEEK,
              2.05,
          ),  # <= 2 weeks is considered weekly, buffer for daylight savings
          (
              SimpleTimeFrequencyEnum.MONTH,
              2.05,
          ),  # <= 2 months is considered monthly, buffer for 31-day month
          (
              SimpleTimeFrequencyEnum.YEAR,
              1.01,
          ),  # <= 1 years is considered yearly, buffer for leap year
      ]
  
      for simple_freq, threshold in freq_threshold:
          if (
              period
              <= simple_freq.value.seconds_per_observation * threshold
          ):
              return simple_freq
      return SimpleTimeFrequencyEnum.MULTIYEAR
  
file_path: greykite/greykite/common/time_properties_forecast.py
imports: import math
  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.time_properties import get_canonical_data
  from greykite.common.time_properties import min_gap_in_seconds
label_desc: Use image node_id 2 for calling a global function with example usage: get_simple_time_frequency_from_period(period) and returns: SimpleTimeFrequencyEnum, simple_freq