class_docstr: Class for managing the segments that belong to a `DynamicBaseline` model.
class_docstr_tok: ["Class","for","managing","the","segments","that","belong","to","a","`","DynamicBaseline","`","model","."]
code: def weekday_key(self, t: pd.Timestamp):
      return t.dayofweek if self.has_weekly else None
  
imports: import logging
  from itertools import chain, product
  from merlion.plot import Figure
  from typing import Any, Dict, List, Tuple
  from enum import Enum, auto
  from operator import xor
  from math import ceil
  import numpy
  import pandas
  from merlion.evaluate.anomaly import TSADMetric
  from merlion.models.anomaly.base import DetectorConfig, DetectorBase
  from merlion.utils import UnivariateTimeSeries, TimeSeries
  from merlion.utils.istat import Mean, Variance
  from merlion.utils.resample import to_pd_datetime, to_timestamp
label_desc: Use image node_id 7 for calling the Segmenter obj's underlying member method code with example usage: obj.weekday_key(t) and returns: unknown