class_docstr: Tests for logging integration
docstr: Test logging of QNode creation
code: def test_qd_qnode_creation(self, caplog):
      "Test logging of QNode creation"
  
      enable_and_configure_logging()
  
      dev = qml.device("default.qubit", wires=2)
  
      # Single log entry, QNode creation
      with caplog.at_level(logging.DEBUG):
  
          @qml.qnode(dev, diff_method=None)
          def circuit():  # pylint: disable=unused-variable
              qml.PauliX(wires=0)
              return qml.expval(qml.PauliZ(0)), qml.var(qml.PauliZ(0))
  
          assert len(caplog.records) == 1
          assert "Creating QNode" in caplog.text
  
file_path: pennylane/tests/logging/test_logging_autograd.py
imports: import logging
  import pytest
  import pennylane
  import pennylane.logging
label_desc: Use image node_id 1 for calling the TestLogging obj's underlying member method code with example usage: obj.test_qd_qnode_creation(caplog) and returns: qml,  qml