<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_sampling_strategy(self, sensor_name, strategy_and_params):
 """Set the sampling strategy for the named sensor Parameters sensor_name : str Name of the sensor strategy_and_params : seq of str or str strategy names and parameters are as defined by the KATCP spec. As str contains the same elements in space-separated form. Returns ------- sensor_strategy : tuple (success, info) with success : bool True if setting succeeded for this sensor, else False info : tuple Normalibed sensor strategy and parameters as tuple if success == True else, sys.exc_info() tuple for the error that occured. """

        try:
            strategy_and_params = resource.normalize_strategy_parameters(
                strategy_and_params)
            self._strategy_cache[sensor_name] = strategy_and_params
            reply = yield self._inspecting_client.wrapped_request(
                'sensor-sampling', sensor_name, *strategy_and_params)
            if not reply.succeeded:
                raise KATCPSensorError('Error setting strategy for sensor {0}: \n'
                                       '{1!s}'.format(sensor_name, reply))
            sensor_strategy = (True, strategy_and_params)
        except Exception as e:
            self._logger.exception('Exception found!')
            sensor_strategy = (False, str(e))
        raise tornado.gen.Return(sensor_strategy)