code: def __init__(self, a_data=None, a_ind=None, n_neighbors=None, **kw):
      super().__init__(
          _a_data=a_data, _a_ind=a_ind, _n_neighbors=n_neighbors, **kw
      )
      self.output_types = [OutputType.tensor]
  
imports: import numpy
  from ...None import opcodes
  from ...core import recursive_tile
  from ...lib.sparse.array import get_sparse_module, SparseNDArray
  from ...serialization.serializables import KeyField, Int64Field
  from ...tensor.array_utils import as_same_device, device
  from ...tensor.core import TensorOrder
  from ...tensor.utils import decide_unify_split
  from ...utils import has_unknown_shape
  from ..operands import LearnOperand, LearnOperandMixin, OutputType
label_desc: Use image node_id 1 to create a new KNeighborsGraph object from inherited base classes: LearnOperand, LearnOperandMixin with example: obj = KNeighborsGraph(a_data, a_ind, n_neighbors)