class_docstr: Tests for the var function
docstr: Test that the return type of the observable is :attr:`ObservableReturnTypes.Variance`
docstr_tok: ["Test","that","the","return","type","of","the","observable","is",":","attr",":","`","ObservableReturnTypes.Variance","`"]
code: def test_observable_return_type_is_variance(self):
      """Test that the return type of the observable is :attr:`ObservableReturnTypes.Variance`"""
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev)
      def circuit():
          res = qml.var(qml.PauliZ(0))
          assert res.return_type is Variance
          return res
  
      circuit()
  
file_path: pennylane/tests/measurements/test_var.py
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Variance, Shots
label_desc: Use image node_id 3 for calling the TestVar obj's underlying member method code with example usage: obj.test_observable_return_type_is_variance() and returns: res