class_docstr: Tests vector expansion to more wires
class_docstr_tok: ["Tests","vector","expansion","to","more","wires"]
docstr: Test exception raised if incorrect sized vector provided.
docstr_tok: ["Test","exception","raised","if","incorrect","sized","vector","provided","."]
code: def test_expand_vector_invalid_vector(self):
      """Test exception raised if incorrect sized vector provided."""
      with pytest.raises(
          ValueError, match="Vector parameter must be of length"
      ):
          pu.expand_vector(TestExpandVector.VECTOR1, [0, 1], 4)
  
imports: import functools
  import itertools
  import pytest
  import numpy
  import pennylane
  import pennylane.utils
label_desc: Use image node_id 4 for calling the TestExpandVector obj's underlying member method code with example usage: obj.test_expand_vector_invalid_vector() without return types