input: Write a function to test the functionality of the "search" method in the "sru" class of the provided Python API for KB SRU. The function should assert that the method returns a "response" object with the correct number of records when given valid input parameters, and returns False when no records are found. Additionally, the function should handle exceptions for invalid collection names.
  
  assert sru_search_test("valid_query", "ANP") == response_object_with_correct_number_of_records
  assert sru_search_test("invalid_query", "ANP") == False
  assert sru_search_test("valid_query", "INVALID_COLLECTION") == Exception  # Raises an exception for unknown collection
  assert sru_search_test("", "ANP") == False  # No query provided, should return False
  assert sru_search_test("valid_query", "") == Exception  # No collection provided, should raise an exception
  
  
  def sru_search_test(query, collection):
      sru_instance = sru()
      try:
          result = sru_instance.search(query, collection)
          if isinstance(result, Exception):
              return Exception
          return result
      except Exception as e:
          return e
  
output: 
  def sru_search_test(query, collection):
      sru_instance = sru()
      try:
          result = sru_instance.search(query, collection)
          if result.recordCount == 0:
              return False
          return result
      except Exception as e:
          return e
  