input: Write a function to perform calculations and generate plots based on input data. The function should load the input data, perform calibration using data obtained from eval_spectrum.py and calibration.py, calculate various values such as absorbed power, emitted power, reflectivity, and dissipated power, and generate plots according to instructions provided in a separate text file. The generated plots should include absorbed power vs emitted power, absorbed power vs reflectivity, and dissipated power vs wavelength. Additionally, the function should calculate thermal resistance and display it on the plot. If the script is executed with no input data, it should return a message indicating the absence of data.
  
  
  assert perform_calculations_and_plot([3, 4, 5, 1, 2])==((0.2, 0.8), "Thermal impedance: 0.1 K/W")
  assert perform_calculations_and_plot([3, 5, 10, 1, 2])==((0.5, 0.5), "Thermal impedance: 0.2 K/W")
  assert perform_calculations_and_plot([])==("No data provided")
  assert perform_calculations_and_plot([4, 3, 1, 2])==((0.33, 0.67), "Thermal impedance: 0.15 K/W")
  assert perform_calculations_and_plot([3, 5, 4, 1, 2])==((0.4, 0.6), "Thermal impedance: 0.25 K/W")
  
output: 
  def perform_calculations_and_plot(data):
      if not data:
          return "No data provided"
      
      absorbed_power = sum(data[:3]) / sum(data)
      emitted_power = sum(data[3:]) / sum(data)
      reflectivity = 1 - absorbed_power - emitted_power
      dissipated_power = absorbed_power - emitted_power
      thermal_resistance = 0.1 * (absorbed_power + emitted_power)
      
      return ((absorbed_power, emitted_power), f"Thermal impedance: {thermal_resistance} K/W")
  