def hacktoberfest_events(tablerows):
    """This function takes the list of tablerows as input and performs
       scraping of required elements as well as stores the scraped data
       into a dictionary and returns that dictionary

    Args:
        tablerows (list): Lis of tablerows of the target elements.
    """
    events = {}
    for i, tablerow in enumerate(tablerows):
        location = tablerow.find("td", {"class": "location"}).text
        link = tablerow.find("a")["href"]
        name = tablerow.find("td", {"class": "event_name"}).text.strip()
        date = tablerow.find("td", {"class": "date is-hidden"}).text.strip()
        events[i] = [name, date, location, link]
    return events