code: def __init__(self, m, w, d, hour=2, minute=0, second=0):
      if not 1 <= m <= 12:
          raise ValueError("m must be in [1, 12]")
  
      if not 1 <= w <= 5:
          raise ValueError("w must be in [1, 5]")
  
      if not 0 <= d <= 6:
          raise ValueError("d must be in [0, 6]")
  
      self.m = m
      self.w = w
      self.d = d
      self.hour = hour
      self.minute = minute
      self.second = second
  
imports: import bisect
  import calendar
  import collections
  import functools
  import re
  import weakref
  from datetime import datetime, timedelta, tzinfo
  from .None import _common, _tzpath
label_desc: Use image node_id 1 to create a new _CalendarOffset object  with example: obj = _CalendarOffset(m, w, d, hour, minute, second)