input: Consider the provided code snippet that describes a Python API for KB SRU. Using this code, generate a function in the required format that checks whether there are any repeated search results based on the title, using a given threshold for comparison.
  
  
  def has_repeated_search_results(response_obj, threshold: float) -> bool:
      """ Check if in the response object from a KB SRU search, there are any repeated 
      titles closer to each other than the given threshold. Titles are compared by their 
      normalized form (lowercase, no spaces, etc.).
      >>> response_obj = sru.search("example query")
      >>> has_repeated_search_results(response_obj, 0.8)
      False
      >>> response_obj = sru.search("repeated titles query")
      >>> has_repeated_search_results(response_obj, 0.9)
      True
      """
  
output:     def has_repeated_search_results(response_obj, threshold: float) -> bool:
      titles = [result['title'].lower().replace(" ", "") for result in response_obj['records']]
      for i in range(len(titles)):
          for j in range(i + 1, len(titles)):
              if difflib.SequenceMatcher(None, titles[i], titles[j]).ratio() >= threshold:
                  return True
      return False