class_docstr: Base class for pandas Accessor objects cat, dt, and str.
  
  Notes
  -----
  Subclasses should define ``_accessor_name``, ``_accessor_methods``, and
  ``_accessor_properties``.
class_docstr_tok: ["Base","class","for","pandas","Accessor","objects","cat",",","dt",",","and","str",".","Notes","--","--","-","Subclasses","should","define","``","_accessor_name","``",",","``","_accessor_methods","``",",","and","``","_accessor_properties","``","."]
code: def _delegate_method(
      obj,
      accessor,
      attr,
      args,
      kwargs,
      catch_deprecation_warnings: bool = False,
  ):
      with check_to_pydatetime_deprecation(catch_deprecation_warnings):
          with warnings.catch_warnings():
              # Falling back on a non-pyarrow code path which may decrease performance
              warnings.simplefilter(
                  "ignore", pd.errors.PerformanceWarning
              )
              out = getattr(getattr(obj, accessor, obj), attr)(
                  *args, **kwargs
              )
              return maybe_wrap_pandas(obj, out)
  
imports: from __future__ import annotations
  import warnings
  import numpy
  import pandas
  from dask.dataframe._compat import check_to_pydatetime_deprecation
  from dask.utils import derived_from
label_desc: Use image node_id 4 for calling the Accessor obj's underlying member method code with example usage: obj._delegate_method(obj, accessor, attr, args, kwargs, catch_deprecation_warnings) and returns: maybe_wrap_pandas