code: def test_find_last_match(
      input_list: List[Tuple[str, str]],
      reference: str,
      expected_idx: int,
  ) -> None:
      csp = create_search_path(input_list)
      assert (
          csp.find_last_match(
              SearchPathQuery(reference[0], reference[1])
          )
          == expected_idx
      )
  
file_path: hydra/tests/test_config_search_path.py
imports: import os
  from os.path import realpath
  from typing import List, Optional, Tuple
  from pytest import mark
  from hydra._internal.config_search_path_impl import ConfigSearchPathImpl
  from hydra._internal.utils import compute_search_path_dir
  from hydra.core.config_search_path import SearchPathElement, SearchPathQuery
label_desc: Use image node_id 3 for calling a global function with example usage: test_find_last_match(input_list, reference, expected_idx) without return types