code: def _find(
      index_left: int, index_right: int, node: Node, pos: float
  ) -> int:
      if index_right - index_left == 1:
          return index_left
      else:
          node_left, node_right, _ = node
          index_center = (index_left + index_right) // 2
          if node_left:
              left_value = node_left[2]
          else:
              left_value = 0.0
          if pos < left_value:
              return _find(index_left, index_center, node_left, pos)
          else:
              return _find(
                  index_center,
                  index_right,
                  node_right,
                  pos - left_value,
              )
  
imports: import collections
  from typing import Any, Callable, Deque, Generic, List, Optional, Sequence, Tuple, TypeVar
  import numpy
  from pfrl.utils.random import sample_n_k
label_desc: Use image node_id 4 for calling a global function with example usage: _find(index_left, index_right, node, pos) and returns: index_left, _find, _find