code: def expected_res_single(x):
      return 2 * qml.math.cos(x / 2) ** 2
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: expected_res_single(x) and returns: unknown