code: def test_valid_grad_on_execution(option):
      """Test execution config allows True, False and None"""
      config = ExecutionConfig(grad_on_execution=option)
      assert config.grad_on_execution == option
  
imports: import pytest
  from pennylane.devices import ExecutionConfig
label_desc: Use image node_id 5 for calling a global function with example usage: test_valid_grad_on_execution(option) without return types