class_docstr: Custom property-like object.
  
  A descriptor for caching accessors:
  
  Parameters
  ----------
  name : str
      Namespace that accessor methods, properties, etc will be accessed under, e.g. "foo" for a
      dataframe accessor yields the accessor ``df.foo``
  accessor: cls
      Class with the extension methods.
  
  Notes
  -----
  For accessor, the class's __init__ method assumes that you are registering an accessor for one
  of ``Series``, ``DataFrame``, or ``Index``.
  
  This object is not meant to be instantiated directly. Instead, use register_dataframe_accessor,
  register_series_accessor, or register_index_accessor.
  
  The pandas-on-Spark accessor is modified based on pandas.core.accessor.
code: def __init__(self, name: str, accessor: Type[T]) -> None:
      self._name = name
      self._accessor = accessor
  
file_path: spark/python/pyspark/pandas/extensions.py
imports: from typing import Callable, Generic, Optional, Type, Union, TYPE_CHECKING
  import warnings
  from pyspark.pandas._typing import T
label_desc: Use image node_id 1 to create a new CachedAccessor object from inherited base classes: Generic with example: obj = CachedAccessor(name, accessor)