replace mne function due to depreciation in mne 1.3.0
psd_welch function is depreciate in mne 1.3.0 and is replaced by spectrum = instance.compute_psd(method="welch") instead, followed by spectrum.get_data(return_freqs=True)
https://mne.tools/1.2/generated/mne.time_frequency.psd_welch.html