code: def cost6(x):
      """Cost function."""
      qml.Rot(*x, wires=0)
      return [qml.probs([0, 1]), qml.probs([2, 3])]
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: cost6(x) and returns: list