#!/usr/bin/env python3""" Find Minimum Goal Differential Write a program that takes a filename on the command line and processes the CSV contents. The contents will be a CSV file with end-of-season football standings for the English Premier League. Determine which team had the smallest goal differential that season. The first line of the CSV file will be column headers: Team,Games,Wins,Losses,Draws,Goals For,Goals Against Write unit tests with Pytest to test your program."""importcsv_readerdefget_name_and_diff(team_stats):diff=int(team_stats["Goals For"])-int(team_stats["Goals Against"])returnteam_stats["Team"],abs(diff)defget_min_score_difference(filename):withopen(filename,"r",newline="")ascsv_data:returnmin(csv_reader.get_next_result(csv_data,get_name_and_diff),key=lambdaitem:item[1],)