code: def _register(cls, method):
      is_property = not callable(getattr(pd.Series.dt, method))
      func = cls._gen_func(method, is_property)
      if is_property:
          func = property(func)
      setattr(cls, method, func)
  
imports: from functools import wraps
  from typing import Iterable
  import pandas
  from pandas.api.types import is_datetime64_dtype, is_datetime64tz_dtype, is_timedelta64_dtype, is_period_dtype
  from ...utils import adapt_mars_docstring
  from .string_ import _string_method_to_handlers, SeriesStringMethod
  from .datetimes import _datetime_method_to_handlers, SeriesDatetimeMethod
label_desc: Use image node_id 3 for calling the DatetimeAccessor obj's underlying member method code with example usage: obj._register(cls, method) without return types