class_docstr: Indexer for BaseDistribution, for pandas-like index in loc and iloc property.
code: def __init__(self, ref, method="_loc"):
      self.ref = ref
      self.method = method
  
imports: from warnings import warn
  import numpy
  import pandas
  from sktime.base import BaseObject
  from sktime.utils.pandas import df_map
  from sktime.utils.validation._dependencies import _check_estimator_deps
label_desc: Use image node_id 1 to create a new _Indexer object  with example: obj = _Indexer(ref, method)