input: from typing import List, Union
  
  
  def search_list(list: List[Union[str, int]], search_query: Union[str, int]) -> List[int]:
      """
      Search for all indices of elements in the list that match the search query.
      >>> search_list(["apple", "banana", "peach", "orange", "grape"], "apple")
      [0]
      >>> search_list([1, 2, 3, 4, 2, 5], 2)
      [1, 4]
      """
output:     indices = []
      for i, element in enumerate(list):
          if element == search_query:
              indices.append(i)
      return indices