<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_cli_service(self, command_mode):
 """Use cli.get_session to open CLI connection and switch into required mode :param CommandMode command_mode: operation mode, can be default_mode/enable_mode/config_mode/etc. :return: created session in provided mode :rtype: CommandModeContextManager """

        return self._cli.get_session(self._new_sessions(), command_mode, self._logger)