class_docstr: Tests for the ``Wires`` class.
docstr: Tests the ``select_random()`` method.
code: def test_select_random_method(self):
      """Tests the ``select_random()`` method."""
  
      wires = Wires([4, 0, 1, 5, 6])
  
      assert len(wires.select_random(2)) == 2
      # check that seed makes call deterministic
      assert wires.select_random(4, seed=1) == wires.select_random(
          4, seed=1
      )
  
      with pytest.raises(WireError, match="Cannot sample"):
          wires.select_random(6)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.wires import Wires, WireError
label_desc: Use image node_id 26 for calling the TestWires obj's underlying member method code with example usage: obj.test_select_random_method() without return types