input: 
  def sru_search(query: str, collection: str = None, startrecord: int = 1, maximumrecords: int = 1, recordschema: str = None) -> response:
      """
      Search the KB SRU API using the provided query and optional parameters. Returns a response object containing the results.
      
      >>> sru_search("python", "GGC", 1, 1)
      <response object at 0x...>
      >>> sru_search("programming", "ANP", 1, 1)
      <response object at 0x...>
      """
  
output:     import requests
      import xml.etree.ElementTree as ET
  
      base_url = "http://sru.k10plus.de/gvk"
      params = {
          "version": "1.1",
          "operation": "searchRetrieve",
          "query": query,
          "startRecord": startrecord,
          "maximumRecords": maximumrecords,
      }
  
      if collection:
          params["recordSchema"] = collection
      elif recordschema:
          params["recordSchema"] = recordschema
  
      response = requests.get(base_url, params=params)
      response.raise_for_status()
  
      return response