<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 a sampling strategy for a specific sensor. Parameters sensor_name : string The specific sensor. strategy_and_params : seq of str or str names and parameters are as defined by the KATCP spec. As str contains the same elements in space-separated form. Returns ------- sensors_strategies : tornado Future resolves with a dict with the Python identifier names of the sensors as keys and the value a tuple: (success, info) with sucess : bool True if setting succeeded for this sensor, else False info : tuple normalised sensor strategy and parameters as tuple if success == True else, sys.exc_info() tuple for the error that occured. """

        sensors_strategies = {}
        try:
            sensor_obj = self.sensor.get(sensor_name)
            yield sensor_obj.set_sampling_strategy(strategy_and_params)
            sensors_strategies[sensor_obj.normalised_name] = (
                    True, sensor_obj.sampling_strategy)
        except Exception:
            sensors_strategies[sensor_obj.normalised_name] = (
                    False, sys.exc_info())
        raise tornado.gen.Return(sensors_strategies)