code: def test_Z():
      """Test for the _make_Z function"""
      dim = 4
  
      Z_expected = -np.eye(dim)
      Z_expected[0, 0] = 1
      Z = _make_Z(dim)
  
      assert np.allclose(Z, Z_expected)
  
imports: import numpy
  import pytest
  from scipy.stats import norm
  import pennylane
  from pennylane.templates.subroutines.qmc import QuantumMonteCarlo, _make_V, _make_Z, func_to_unitary, make_Q, probs_to_unitary
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling a global function with example usage: test_Z() without return types