code: def custom_var_ansatz(params, wires=None):
      """Custom parametrized ansatz"""
      for p in params:
          qml.RX(p, wires=wires[0])
  
      qml.CNOT(wires=[wires[0], wires[1]])
  
      for p in params:
          qml.RX(-p, wires=wires[1])
  
      qml.CNOT(wires=[wires[0], wires[1]])
  
imports: import copy
  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: custom_var_ansatz(params, wires) without return types