input: 
  def search_sru(query: str, collection: str = None, startrecord: int = 1, maximumrecords: int = 1, recordschema: str = None) -> list:
      """
      Search the KB SRU API with the given query and optional parameters.
      Returns a list of dictionaries containing the titles and creators of the search results.
  
      >>> search_sru("python", "GGC", 1, 1)
      [{'title': 'Python programming', 'creator': 'John Doe'}]
      >>> search_sru("data science", "GGC", 1, 2)
      [{'title': 'Introduction to Data Science', 'creator': 'Jane Smith'}, {'title': 'Advanced Data Science', 'creator': 'Alice Johnson'}]
      """
      sru_instance = sru()
      response = sru_instance.search(query, collection, startrecord, maximumrecords, recordschema)
      if not response:
          return []
      
      results = []
      for r in response.records:
          results.append({'title': r.titles[0] if r.titles else '', 'creator': r.creators[0] if r.creators else ''})
      return results
  
output:     sru_instance = sru()
      response = sru_instance.search(query, collection, startrecord, maximumrecords, recordschema)
      if not response:
          return []
      
      results = []
      for r in response.records:
          results.append({'title': r.titles[0] if r.titles else '', 'creator': r.creators[0] if r.creators else ''})
      return results