class_docstr: Tests for the ``Wires`` class.
docstr: Tests that Wires object can be converted to a numpy array.
code: def test_convert_to_numpy_array(self):
      """Tests that Wires object can be converted to a numpy array."""
  
      wires = Wires([4, 0, 1])
      array = wires.toarray()
      assert isinstance(array, np.ndarray)
      assert array.shape == (3,)
      for w1, w2 in zip(array, np.array([4, 0, 1])):
          assert w1 == w2
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.wires import Wires, WireError
label_desc: Use image node_id 21 for calling the TestWires obj's underlying member method code with example usage: obj.test_convert_to_numpy_array() without return types