class_docstr: Find closest anchors using :mod:`scipy.sparse`.
class_docstr_tok: ["Find","closest","anchors","using",":","mod",":","`","scipy.sparse","`","."]
code: def __call__(
      self,
      edge_index: numpy.ndarray,
      anchors: numpy.ndarray,
      k: int,
      num_entities: Optional[int] = None,
  ) -> numpy.ndarray:  # noqa: D102
      adjacency = self.create_adjacency(
          edge_index=edge_index, num_entities=num_entities
      )
      pool = self.bfs(
          anchors=anchors,
          adjacency=adjacency,
          max_iter=self.max_iter,
          k=k,
      )
      return self.select(pool=pool, k=k)
  
imports: import logging
  from abc import ABC, abstractmethod
  from typing import Iterable, Optional
  import numpy
  import scipy.sparse
  import torch
  from class_resolver import ClassResolver, OptionalKwargs
  from torch_ppr import page_rank
  from torch_ppr.utils import edge_index_to_sparse_matrix, prepare_page_rank_adjacency, prepare_x0
  from tqdm.auto import tqdm
  from .utils import ensure_num_entities
  from ...typing import DeviceHint
  from ...utils import ExtraReprMixin, format_relative_comparison, resolve_device
label_desc: Use image node_id 6 for calling the ScipySparseAnchorSearcher obj's underlying member method code with example usage: obj.__call__(edge_index, anchors, k, num_entities) and returns: self