class_docstr: Tests for the sample function
class_docstr_tok: ["Tests","for","the","sample","function"]
docstr: Test that passing a list not containing only measurement values raises an error.
docstr_tok: ["Test","that","passing","a","list","not","containing","only","measurement","values","raises","an","error","."]
code: def test_mixed_lists_as_op_not_allowed(self):
      """Test that passing a list not containing only measurement values raises an error."""
      m0 = qml.measure(0)
  
      with pytest.raises(
          qml.QuantumFunctionError,
          match="Only sequences of single MeasurementValues can be passed with the op argument",
      ):
          _ = qml.sample(op=[m0, qml.PauliZ(0)])
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MeasurementShapeError, Sample, Shots
  from pennylane.operation import EigvalsUndefinedError, Operator
label_desc: Use image node_id 11 for calling the TestSample obj's underlying member method code with example usage: obj.test_mixed_lists_as_op_not_allowed() without return types