input: Write a function to search for all occurrences of a specified query in a given list and return the indices of these occurrences. The function should take two arguments: the list and the search query. If the search query is found in the list, the function should return a list of indices where the query occurs. If the query is not found, the function should return an empty list.
  
  def search_list(list, search_query):
      result = []
      for i in range(len(list)):
          if list[i] == search_query:
              result.append(i)
      return result
  
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "apple")==[0]
  assert search_list(["apple", "banana", "apple", "orange", "grape"], "apple")==[0, 2]
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "mango")==[]
  assert search_list([], "apple")==[]
output: def search_list(list, search_query):
      result = []
      for i in range(len(list)):
          if list[i] == search_query:
              result.append(i)
      return result