<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_state_sensors(self, agent_name, sensors):
 """Adds a sensor to a particular agent. This only works if the world you are running also includes that particular sensor on the agent. Args: agent_name (str):
 The name of the agent to add the sensor to. sensors (:obj:`HolodeckSensor` or list of :obj:`HolodeckSensor`):
 Sensors to add to the agent. Should be objects that inherit from :obj:`HolodeckSensor`. """

        if isinstance(sensors, list):
            for sensor in sensors:
                self.add_state_sensors(agent_name, sensor)
        else:
            if agent_name not in self._sensor_map:
                self._sensor_map[agent_name] = dict()

            self._sensor_map[agent_name][sensors] = self._client.malloc(agent_name + "_" + Sensors.name(sensors),
                                                                        Sensors.shape(sensors),
                                                                        Sensors.dtype(sensors))