class_docstr: Tests for the expval function
class_docstr_tok: ["Tests","for","the","expval","function"]
docstr: Test that the shape is correct with the shot vector too.
docstr_tok: ["Test","that","the","shape","is","correct","with","the","shot","vector","too","."]
code: def test_shape_shot_vector(self, obs):
      """Test that the shape is correct with the shot vector too."""
      res = qml.expval(obs)
      shot_vector = (1, 2, 3)
      dev = qml.device("default.qubit", wires=3, shots=shot_vector)
      assert res.shape(dev, Shots(shot_vector)) == ((), (), ())
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Expectation, Shots
  from pennylane.measurements.expval import ExpectationMP
label_desc: Use image node_id 9 for calling the TestExpval obj's underlying member method code with example usage: obj.test_shape_shot_vector(obs) without return types