code: def pytest_runtest_setup(item):
      """Automatically skip tests if interfaces are not installed"""
      # Autograd is assumed to be installed
      interfaces = {"tf", "torch", "jax"}
      available_interfaces = {
          "tf": tf_available,
          "torch": torch_available,
          "jax": jax_available,
      }
  
      allowed_interfaces = [
          allowed_interface
          for allowed_interface in interfaces
          if available_interfaces[allowed_interface] is True
      ]
  
      # load the marker specifying what the interface is
      all_interfaces = {"tf", "torch", "jax", "all_interfaces"}
      marks = {
          mark.name
          for mark in item.iter_markers()
          if mark.name in all_interfaces
      }
  
      for b in marks:
          if b == "all_interfaces":
              required_interfaces = {"tf", "torch", "jax"}
              for interface in required_interfaces:
                  if interface not in allowed_interfaces:
                      pytest.skip(
                          f"\nTest {item.nodeid} only runs with {allowed_interfaces} interfaces(s) but {b} interface provided",
                      )
          else:
              if b not in allowed_interfaces:
                  pytest.skip(
                      f"\nTest {item.nodeid} only runs with {allowed_interfaces} interfaces(s) but {b} interface provided",
                  )
  
imports: import os
  import pathlib
  import numpy
  import pytest
  import pennylane
  from pennylane.devices import DefaultGaussian
label_desc: Use image node_id 25 for calling a global function with example usage: pytest_runtest_setup(item) without return types