<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_migrations(self, migrations):
 """ Add migrations to be applied. Args: Raises: MigrationSessionError if called on a closed MigrationSession """

        if self.__closed:
            raise MigrationSessionError("Can't change applied session")
        self._to_apply.extend(migrations)