code: def __init__(
      self,
      n_neighbors=5,
      *,
      weights="uniform",
      algorithm="auto",
      leaf_size=30,
      p=2,
      metric="minkowski",
      metric_params=None,
      n_jobs=None,
      **kwargs,
  ):
      super().__init__(
          n_neighbors=n_neighbors,
          algorithm=algorithm,
          leaf_size=leaf_size,
          metric=metric,
          p=p,
          metric_params=metric_params,
          n_jobs=n_jobs,
          **kwargs,
      )
      self.weights = (
          weights
          if sklearn_check_version("1.0")
          else _check_weights(weights)
      )
  
file_path: scikit-learn-intelex/daal4py/sklearn/neighbors/_regression.py
imports: from sklearn.base import RegressorMixin
  from .._device_offload import support_usm_ndarray
  from .._utils import sklearn_check_version
  from ._base import KNeighborsMixin, NeighborsBase
label_desc: Use image node_id 1 to create a new KNeighborsRegressor object from inherited base classes: KNeighborsRegressor_ with example: obj = KNeighborsRegressor(n_neighbors)