<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prepare_terminal_session(self):
 """Send commands to prepare terminal session configuration."""

        for cmd in self.driver.prepare_terminal_session:
            try:
                self.send(cmd)
            except CommandSyntaxError:
                self.chain.connection.log("Command not supported or not authorized: '{}'. Skipping".format(cmd))
                pass