<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_train_stops(self, train_code, date=None):
 """Get details for a train. @param train_code code for the trian @param date Date in format "15 oct 2017". If none use today """

        if date is None:
            date = datetime.date.today().strftime("%d %B %Y")

        url = self.api_base_url + 'getTrainMovementsXML'
        params = {
            'TrainId': train_code,
            'TrainDate': date
        }

        response = requests.get(
            url, params=params, timeout=10)

        if response.status_code != 200:
            return []

        return self._parse_train_movement_data(response.content)