code: def test_preprocessor_pytorch_init(
      art_warning, is_fitted, apply_fit, apply_predict
  ):
      try:
          import torch
  
          preprocessor = DummyPreprocessorPyTorch(
              device_type="cpu",
              is_fitted=is_fitted,
              apply_fit=apply_fit,
              apply_predict=apply_predict,
          )
  
          assert preprocessor.device == torch.device("cpu")
          assert preprocessor.is_fitted == is_fitted
          assert preprocessor.apply_fit == apply_fit
          assert preprocessor.apply_predict == apply_predict
  
      except ARTTestException as e:
          art_warning(e)
  
imports: import pytest
  from art.defences.preprocessor.preprocessor import PreprocessorPyTorch
  from tests.utils import ARTTestException
label_desc: Use image node_id 1 for calling a global function with example usage: test_preprocessor_pytorch_init(art_warning, is_fitted, apply_fit, apply_predict) without return types