class_docstr: Base class for indexing
class_docstr_tok: ["Base","class","for","indexing"]
docstr: To implement.
  This method has to return the scores and the indices of the retrieved examples given a certain query.
docstr_tok: ["To","implement",".","This","method","has","to","return","the","scores","and","the","indices","of","the","retrieved","examples","given","a","certain","query","."]
code: def search(self, query, k: int = 10, **kwargs) -> SearchResults:
      """
      To implement.
      This method has to return the scores and the indices of the retrieved examples given a certain query.
      """
      raise NotImplementedError
  
imports: import importlib.util
  import os
  import tempfile
  from pathlib import PurePath
  from typing import TYPE_CHECKING, Dict, List, NamedTuple, Optional, Union
  import fsspec
  import numpy
  from .utils import logging
  from .utils import tqdm
label_desc: Use image node_id 1 for calling the BaseIndex obj's underlying member method code with example usage: obj.search(query, k) without return types