code: def week_of_year(index: pd.DatetimeIndex) -> np.ndarray:
      try:
          week = index.isocalendar().week
      except AttributeError:
          week = index.week
  
      return _normalize(week - 1, num=53)
  
file_path: autogluon/timeseries/src/autogluon/timeseries/utils/datetime/time_features.py
imports: from typing import Callable, List
  import numpy
  import pandas
  from .base import norm_freq_str
label_desc: Use image node_id 4 for calling a global function with example usage: week_of_year(index) and returns: _normalize