class_docstr: Tests for the var function
class_docstr_tok: ["Tests","for","the","var","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.var(obs)
      shot_vector = (1, 2, 3)
      dev = qml.device(
          "default.qubit.legacy", wires=3, shots=shot_vector
      )
      assert res.shape(dev, Shots(shot_vector)) == ((), (), ())
  
file_path: pennylane/tests/measurements/legacy/test_var_legacy.py
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Variance, Shots
  from pennylane.devices.qubit.measure import flatten_state
label_desc: Use image node_id 7 for calling the TestVar obj's underlying member method code with example usage: obj.test_shape_shot_vector(obs) without return types