Generate text that is semantically similar to this text: a switch will affect a bulb it the bulb and the switch are in the path as the battery
when the switch and the bulb are contained in the same path