code: def test_shots_new_device_interface():
      """Test that calling set_shots on a device implementing the new interface leaves it
      untouched.
      """
      dev = qml.devices.DefaultQubit()
      with pytest.raises(ValueError):
          with set_shots(dev, 10):
              pass
  
imports: import pytest
  import pennylane
  from pennylane.workflow import set_shots
  from pennylane.measurements import Shots
label_desc: Use image node_id 1 for calling a global function with example usage: test_shots_new_device_interface() without return types