code: def __init__(
      self,
      tree=None,
      n_neighbors=None,
      return_distance=None,
      output_types=None,
      **kw,
  ):
      super().__init__(
          _tree=tree,
          _n_neighbors=n_neighbors,
          _return_distance=return_distance,
          _output_types=output_types,
          **kw,
      )
      if self.output_types is None:
          self.output_types = [OutputType.tensor] * self.output_limit
  
imports: import cloudpickle
  import numpy
  from ...core import Object, OBJECT_TYPE, OBJECT_CHUNK_TYPE, recursive_tile
  from ...serialization.serializables import KeyField, Int32Field, DictField, AnyField, BoolField
  from ...tensor.core import TensorOrder
  from ...utils import has_unknown_shape, tokenize
  from ..operands import LearnOperand, LearnOperandMixin, OutputType
label_desc: Use image node_id 1 to create a new TreeQueryBase object from inherited base classes: LearnOperand, LearnOperandMixin with example: obj = TreeQueryBase(tree, n_neighbors, return_distance, output_types)