<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_global_stats_for_game(self, appID, count, names, startdate, enddate, format=None):
 """Request global stats for a give game. appID: The app ID count: Number of stats to get. names: A list of names of stats to get. startdate: The start time to gather stats. Unix timestamp enddate: The end time to gather stats. Unix timestamp format: Return format. None defaults to json. (json, xml, vdf) """

        parameters = {
            'appid' : appID,
            'count' : count,
            'startdate' : startdate,
            'enddate' : enddate
            }
        count = 0
        for name in names:
            param = "name[" + str(count) + "]"
            parameters[param] = name
            count += 1
        if format is not None:
            parameters['format'] = format
        url = self.create_request_url(self.interface, 'GetGlobalStatsForGame', 1,
            parameters)
        data = self.retrieve_request(url)
        return self.return_data(data, format=format)