input: Write a python function to gather data from a web page and save it in CSV format.
  assert get_data_and_save_as_csv('https://jsonplaceholder.typicode.com/users') is None
output: import requests
  import csv
  
  def get_data_and_save_as_csv(url):
      response = requests.get(url)
      data = response.json()
  
      keys = data[0].keys()
      with open('data.csv', 'w', newline='') as output_file:
          dict_writer = csv.DictWriter(output_file, fieldnames=keys)
          dict_writer.writeheader()
          dict_writer.writerows(data)