code: def test_invalid_seed():
      """Ensure that we still fix the seed even if an invalid seed is given."""
      with pytest.warns(UserWarning, match="Invalid seed found"):
          seed = lightning.fabric.utilities.seed.seed_everything()
      assert seed == 0
  
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 4 for calling a global function with example usage: test_invalid_seed() without return types