The sentence indicates the train's departure happened before a past moment. Past perfect 'had left' shows this earlier action. 'Had been left' is passive voice meaning someone left it there, not that it departed. 'Has left' and 'has been left' use present tense which doesn't match the past context.