code: def skip_error_on_systems(
      error_type: tp.Type[Exception], systems: tp.Iterable[str]
  ) -> tp.Iterator[None]:
      """Context manager for skipping a test upon a specific error on specific systems
      This is mostly used to skip some tests for features which are incompatible with Windows
      Eg. of systems (mind the capitalized first letter): Darwin, Windows
      """
      try:
          yield
      except error_type as e:
          system = platform.system()
          if system in systems:
              raise unittest.SkipTest(f"Skipping on system {system}")
          if (
              systems
          ):  # only print if the context is actually active for some system
              print(
                  f'This is system "{system}" (should it be skipped for the test?)'
              )
          raise e
  
imports: import re
  import os
  import warnings
  import platform
  import unittest
  import inspect
  import contextlib
  from pathlib import Path
  import typing
  import numpy
  from .None import errors
label_desc: Use image node_id 6 for calling a global function with example usage: skip_error_on_systems(error_type, systems) without return types