old_contents: import requests
  
  def retrieve_json(url):
      r = requests.get(url)
      r.raise_for_status()
      return r.json()
  
new_contents: import requests
  
  
  DEFAULT_TIMEOUT = 10
  
  
  def retrieve_json(url, timeout=DEFAULT_TIMEOUT):
      r = requests.get(url, timeout=timeout)
      r.raise_for_status()
      return r.json()
  
subject: Add a default timeout parameter to retrieve_json