Ken Adam is a legendary, British production design designer, most famous for his innovative work on early James Bond films (e.g. Dr. No, Goldfinger, Thunderball). Later in his career, Adam was the production designer for The Spy Who Loved Me. To quote the Youtube video:
One of the sets included the villain’s secret lair that was located inside of an enormous tanker ship. Adam struggled with lighting the massive set, and called in a favor from his old boss…Stanley Kubrick. Under an
agreement of total secrecy, Kubrick was snuck onto the empty set, where he spent 4 hours setting lighting and advising Ken Adam.