code: def _ymd2ord(cls, year, month, day):
      return (
          _post_epoch_days_before_year(year)
          + cls._DAYS_BEFORE_MONTH[month]
          + (month > 2 and calendar.isleap(year))
          + day
      )
  
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 2 for calling the _CalendarOffset obj's underlying member method code with example usage: obj._ymd2ord(cls, year, month, day) and returns: unknown