code: def __init_subclass__(cls):
      for name in [
          "decode",
          "fit",
          "predict",
          "predict_proba",
          "sample",
          "score",
          "score_samples",
      ]:
          meth = getattr(cls, name)
          doc = inspect.getdoc(meth)
          if doc is None or _CATEGORICALHMM_DOC_SUFFIX in doc:
              wrapper = meth
          else:
              wrapper = _make_wrapper(meth)
              wrapper.__doc__ = (
                  doc.replace(
                      "(n_samples, n_features)", "(n_samples, 1)"
                  )
                  + _CATEGORICALHMM_DOC_SUFFIX
              )
          setattr(cls, name, wrapper)
  
imports: import functools
  import inspect
  import warnings
  import numpy
  from scipy import special
  from scipy.stats import multinomial, poisson
  from sklearn.utils import check_random_state
  from .base import BaseHMM, _AbstractHMM
  from .stats import log_multivariate_normal_density
  from .utils import fill_covars, log_normalize
label_desc: Use image node_id 1 for calling the BaseCategoricalHMM obj's underlying member method code with example usage: obj.__init_subclass__(cls) without return types