code: def test_seed_stays_same_with_multiple_seed_everything_calls():
      """Ensure that after the initial seed everything, the seed stays the same for the same run."""
      with pytest.warns(UserWarning, match="No seed found"):
          lightning.fabric.utilities.seed.seed_everything()
      initial_seed = os.environ.get("PL_GLOBAL_SEED")
  
      with pytest.warns(None) as record:
          lightning.fabric.utilities.seed.seed_everything()
      assert not record  # does not warn
      seed = os.environ.get("PL_GLOBAL_SEED")
  
      assert initial_seed == seed
  
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 2 for calling a global function with example usage: test_seed_stays_same_with_multiple_seed_everything_calls() without return types