code: def test_reducer_load_save():
      pca = torchdrift.reducers.PCAReducer(n_components=2)
      a = torch.randn(100, 50, dtype=torch.double)
      red = pca.fit(a)
      pca2 = torchdrift.reducers.PCAReducer(n_components=2)
      pca2.load_state_dict(pca.state_dict())
      red2 = pca2(a)
  
imports: import pytest
  import torchdrift
  import torch
  import sklearn.decomposition
label_desc: Use image node_id 2 for calling a global function with example usage: test_reducer_load_save() without return types