input: Write a python function to parse JSON data and extract the values of "type" and "message".
  assert parse_json('{"type": "error", "message": "An error occurred"}')==("error", "An error occurred")
  assert parse_json('{"type": "success", "message": "Operation was successful"}')==("success", "Operation was successful")
  assert parse_json('{"type": "info", "message": "This is an informational message"}')==("info", "This is an informational message")
output: import json
  
  def parse_json(data):
      parsed_data = json.loads(data)
      return parsed_data["type"], parsed_data["message"]