code: def test_skip_test_on_system(
      skipped_error: tp.Type[Exception],
      system: str,
      expected_error: tp.Type[Exception],
  ) -> None:
      try:
          with pytest.raises(expected_error):
              with testing.skip_error_on_systems(
                  skipped_error, (system,)
              ):
                  raise RuntimeError("Testing skip")
      except (
          unittest.SkipTest
      ) as e:  # prevents SkipTest from just skipping the test and making it useless
          raise AssertionError(
              "Should not have skipped the test!"
          ) from e
  
file_path: nevergrad/nevergrad/common/test_testing.py
imports: import sys
  import unittest
  import platform
  import subprocess
  import typing
  from pathlib import Path
  import pytest
  import numpy
  from .None import testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_skip_test_on_system(skipped_error, system, expected_error) without return types