code: def test_assert_never_union() -> None:
      x: Union[int, str] = 10
  
      if isinstance(x, int):
          pass
      else:
          with pytest.raises(AssertionError):
              assert_never(x)  # type: ignore[arg-type]
  
      if isinstance(x, int):
          pass
      elif isinstance(x, str):
          pass
      else:
          assert_never(x)
  
imports: import enum
  import sys
  from functools import cached_property
  from functools import partial
  from functools import wraps
  from typing import TYPE_CHECKING
  from typing import Union
  import pytest
  from _pytest.compat import _PytestWrapper
  from _pytest.compat import assert_never
  from _pytest.compat import get_real_func
  from _pytest.compat import is_generator
  from _pytest.compat import safe_getattr
  from _pytest.compat import safe_isclass
  from _pytest.outcomes import OutcomeException
  from _pytest.pytester import Pytester
label_desc: Use image node_id 12 for calling a global function with example usage: test_assert_never_union() without return types