code: def test_reset_seed_everything(workers):
      """Test that we can reset the seed to the initial value set by seed_everything()"""
      assert "PL_GLOBAL_SEED" not in os.environ
      assert "PL_SEED_WORKERS" not in os.environ
  
      lightning.fabric.utilities.seed.seed_everything(123, workers)
      before = torch.rand(1)
      assert os.environ["PL_GLOBAL_SEED"] == "123"
      assert os.environ["PL_SEED_WORKERS"] == str(int(workers))
  
      lightning.fabric.utilities.seed.reset_seed()
      after = torch.rand(1)
      assert os.environ["PL_GLOBAL_SEED"] == "123"
      assert os.environ["PL_SEED_WORKERS"] == str(int(workers))
      assert torch.allclose(before, after)
  
file_path: pytorch-lightning/tests/tests_fabric/utilities/test_seed.py
imports: import os
  from unittest import mock
  from unittest.mock import Mock
  import lightning.fabric.utilities
  import pytest
  import torch
  from lightning.fabric.utilities.seed import _collect_rng_states, _set_rng_states
label_desc: Use image node_id 7 for calling a global function with example usage: test_reset_seed_everything(workers) without return types