code: def _find_matching_indices(tree, bin_X, left_mask, right_mask):
      """Finds indices in sorted array of integers.
  
      Most significant h bits in the binary representations of the
      integers are matched with the items' most significant h bits.
      """
      left_index = np.searchsorted(tree, bin_X & left_mask)
      right_index = np.searchsorted(
          tree, bin_X | right_mask, side="right"
      )
      return left_index, right_index
  
imports: import numpy
  import warnings
  from scipy import sparse
  from .base import KNeighborsMixin, RadiusNeighborsMixin
  from ..base import BaseEstimator
  from ..utils.validation import check_array
  from ..utils import check_random_state
  from ..metrics.pairwise import pairwise_distances
  from ..random_projection import GaussianRandomProjection
label_desc: Use image node_id 1 for calling a global function with example usage: _find_matching_indices(tree, bin_X, left_mask, right_mask) and returns: left_index,  right_index