docstr: Retrieves neighbours for the indexes provided from inner neighbour matrix.
  Uses specialized `get_batch` retrieval method if generator is in batched_neighbours mode.
docstr_tok: ["Retrieves","neighbours","for","the","indexes","provided","from","inner","neighbour","matrix",".","Uses","specialized","`","get_batch","`","retrieval","method","if","generator","is","in","batched_neighbours","mode","."]
code: def get_all_neighbour_indices(self, anchor_indices):
      """Retrieves neighbours for the indexes provided from inner neighbour matrix.
      Uses specialized `get_batch` retrieval method if generator is in batched_neighbours mode.
      """
      if self.batched_neighbours:
          return self.neighbour_matrix.get_batch(anchor_indices)
      return [self.neighbour_matrix[idx] for idx in anchor_indices]
  
imports: from abc import ABC, abstractmethod
  from functools import partial
  import itertools
  import random
  import math
  import numpy
  from tensorflow.keras.utils import Sequence
  from scipy.sparse import issparse
  from ..data import get_uint_ctype
label_desc: Use image node_id 5 for calling the TripletGenerator obj's underlying member method code with example usage: obj.get_all_neighbour_indices(anchor_indices) and returns: unknown, self