Are you looking for Reliable Online Writing Services? We are Here For you. Our Professional Tutors Can Handle Any Kind of Assignment. Don’t Use Plagiarized Sources. Get Your Perfect Paper Today! Click Here To Order.

Can someone help with the last function in bold: “get_movie_credits_for_person” ?import http.clientimport jsonimport csvclass TMDBAPIUtils:     movie_Cast_list = []  # Do not modify  def __init__(self, api_key:str):    self.api_key=api_key  def get_movie_cast(self, movie_id:str, limit_int=None, exclude_ids_list=None) -> list:    “””    Get the movie cast for a given movie id, with optional parameters to exclude an cast member    from being returned and/or to limit the number of returned cast members    documentation url:    :param integer movie_id: a movie_id    :param integer limit: number of returned cast members by their ‘order’ attribute      e.g., limit=5 will attempt to return the 5 cast members having ‘order’ attribute values between 0-4      If there are fewer cast members than the specified limit or the limit not specified, return all cast members    :param list exclude_ids: a list of ints containing ids (not cast_ids) of cast members that should be excluded from the returned result      e.g., if exclude_ids are [353, 455] then exclude these from any result.    :rtype: list      return a list of dicts, one dict per cast member with the following structure:        [{‘id’: ‘97909’ # the id of the cast member        ‘character’: ‘John Doe’ # the name of the character played        ‘credit_id’: ’52fe4249c3a36847f8012927′ # id of the credit, …}, …]        Note that this is an example of the structure of the list and some of the fields returned by the API. The result of the API call will include many more fields for each cast member.    Important: the exclude_ids processing should occur prior to limiting output.    “””    global movie_Cast_list    movie_Cast_list = []    global movie_Cast    movie_Cast = []         conn = http.client.HTTPSConnection(“”)       conn.request(“GET”, “/3/movie/{0}/credits?api_key={1}”.format(movie_id, self.api_key))    r1 = conn.getresponse()    #print(    #print(r1.status, r1.reason)    if r1.status == 200:      movie_data =      movie_data_list = json.loads(movie_data.decode(‘utf-8’))      movie_Cast = movie_data_list[‘cast’]           for dictat in movie_Cast:      movie_Cast_shrinked = {key_i: dictat[key_i] for key_i in dictat.keys()           & {‘cast_id’, ‘character’,’credit_id’}}      movie_Cast_list.append(movie_Cast_shrinked)    #print(movie_Cast_list)         if exclude_ids and limit:      exclude_ids_ = exclude_ids #exlude ids first      mc_ID_filter = [d for d in movie_Cast_list if d[‘id’] not in exclude_ids_ ]           #select only the records where order is smaller than the limit      mc_order_filter = [d for d in mc_ID_filter if d[‘order’] < limit ]             for dictat in mc_order_filter:        movie_Cast_shrinked = {key_i: dictat[key_i] for key_i in dictat.keys()             & {'cast_id', 'character','credit_id'}}        movie_Cast_list = movie_Cast_list.append(movie_Cast_shrinked)    return movie_Cast_list      def get_movie_credits_for_person(self, person_id:str, vote_avg_threshold_float=None)->list:    “””    Using the TMDb API, get the movie credits for a person serving in a cast role    documentation url:    :param string person_id: the id of a person    :param vote_avg_threshold: optional parameter to return the movie credit if it is >=      the specified threshold.      e.g., if the vote_avg_threshold is 5.0, then only return credits with a vote_avg >= 5.0    :rtype: list      return a list of dicts, one dict per movie credit with the following structure:        [{‘id’: ‘97909’ # the id of the movie credit        ‘title’: ‘Long, Stock and Two Smoking Barrels’ # the title (not original title) of the credit        ‘vote_avg’: 5.0 # the float value of the vote average value for the credit}, … ]    “””    return NotImplemented Computer Science Engineering & Technology Python Programming