code: def __init__(self, d_model, embed_type="fixed", freq="h"):
      super(TemporalEmbedding, self).__init__()
  
      minute_size = 4
      hour_size = 24
      weekday_size = 7
      day_size = 32
      month_size = 13
  
      Embed = FixedEmbedding if embed_type == "fixed" else nn.Embedding
      if freq == "t":
          self.minute_embed = Embed(minute_size, d_model)
      self.hour_embed = Embed(hour_size, d_model)
      self.weekday_embed = Embed(weekday_size, d_model)
      self.day_embed = Embed(day_size, d_model)
      self.month_embed = Embed(month_size, d_model)
  
imports: import math
label_desc: Use image node_id 1 to create a new TemporalEmbedding object from inherited base classes: nn with example: obj = TemporalEmbedding(d_model, embed_type, freq)