code: def seasonal_pattern(season_time):
      return np.where(
          season_time < 0.4,
          np.cos(season_time * 2 * np.pi),
          1 / np.exp(3 * season_time),
      )
  
file_path: BigDL/docs/docs/ClusterServingGuide/OtherFrameworkUsers/l08c08_forecasting_with_lstm.py
imports: import numpy
  import tensorflow
  import tensorflow.keras
label_desc: Use image node_id 2 for calling a global function with example usage: seasonal_pattern(season_time) and returns: np