code: def __init__(
      self, data, bw_method=None, ind=None, *, weights=None, **kwargs
  ) -> None:
      # Do not call LinePlot.__init__ which may fill nan
      MPLPlot.__init__(
          self, data, **kwargs
      )  # pylint: disable=non-parent-init-called
      self.bw_method = bw_method
      self.ind = ind
      self.weights = weights
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, Literal, final
  import numpy
  from pandas.core.dtypes.common import is_integer, is_list_like
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndex
  from pandas.core.dtypes.missing import isna, remove_na_arraylike
  from pandas.io.formats.printing import pprint_thing
  from pandas.plotting._matplotlib.core import LinePlot, MPLPlot
  from pandas.plotting._matplotlib.groupby import create_iter_data_given_by, reformat_hist_y_given_by
  from pandas.plotting._matplotlib.misc import unpack_single_str_list
  from pandas.plotting._matplotlib.tools import create_subplots, flatten_axes, maybe_adjust_figure, set_ticks_props
label_desc: Use image node_id 3 to create a new KdePlot object from inherited base classes: HistPlot with example: obj = KdePlot(data, bw_method, ind)