import json


def fetch_summary_data(cli):
    """Fetches summary data of Earthquake from S3. Returns dict of the
    data"""
    raw_data = cli.get_object(Bucket='xxx',
                              Key='xxx')
    json_data = raw_data['Body'].read()
    summary_dict = json.loads(json_data)
    return summary_dict