code: def __init__(self, n_neighbors, weights, p, random_state=None):
      self.n_neighbors = n_neighbors
      self.weights = weights
      self.p = p
      self.random_state = random_state
  
file_path: auto-sklearn/autosklearn/pipeline/components/classification/k_nearest_neighbors.py
imports: from typing import Optional
  from ConfigSpace.configuration_space import ConfigurationSpace
  from ConfigSpace.hyperparameters import CategoricalHyperparameter, UniformIntegerHyperparameter
  from autosklearn.askl_typing import FEAT_TYPE_TYPE
  from autosklearn.pipeline.components.base import AutoSklearnClassificationAlgorithm
  from autosklearn.pipeline.constants import DENSE, PREDICTIONS, SPARSE, UNSIGNED_DATA
label_desc: Use image node_id 1 to create a new KNearestNeighborsClassifier object from inherited base classes: AutoSklearnClassificationAlgorithm with example: obj = KNearestNeighborsClassifier(n_neighbors, weights, p, random_state)