class_docstr: Unit tests for the batch_transform class
class_docstr_tok: ["Unit","tests","for","the","batch_transform","class"]
docstr: Test that batch transforms are not created during Sphinx builds
docstr_tok: ["Test","that","batch","transforms","are","not","created","during","Sphinx","builds"]
code: def test_sphinx_build(self, monkeypatch):
      """Test that batch transforms are not created during Sphinx builds"""
  
      @qml.batch_transform
      def my_transform0(tape):
          tape1 = tape.copy()
          tape2 = tape.copy()
          return [tape1, tape2], None
  
      assert isinstance(my_transform0, qml.batch_transform)
  
      monkeypatch.setenv("SPHINX_BUILD", "1")
  
      with pytest.warns(
          UserWarning, match="Batch transformations have been disabled"
      ):
  
          @qml.batch_transform
          def my_transform1(tape):
              tape1 = tape.copy()
              tape2 = tape.copy()
              return [tape1, tape2], None
  
      assert not isinstance(my_transform1, qml.batch_transform)
  
imports: import functools
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 6 for calling the TestBatchTransform obj's underlying member method code with example usage: obj.test_sphinx_build(monkeypatch) and returns: list,  None, list,  None