code: def month_of_year(index: pd.PeriodIndex) -> np.ndarray:
      """
      Month of year encoded as value between [-0.5, 0.5]
      """
  
      return _normalize(index.month - 1, num=12)
  
imports: from typing import Any, Callable, Dict, List
  import numpy
  import pandas
  from pandas.tseries import offsets
  from pandas.tseries.frequencies import to_offset
  from gluonts.pydantic import BaseModel
label_desc: Use image node_id 14 for calling a global function with example usage: month_of_year(index) and returns: _normalize