code: def test_executors(ex: tp.Type[core.Executor]) -> None:
      assert isinstance(ex, type)
      assert issubclass(ex, core.Executor)
      assert ex.affinity() >= -1
  
imports: import logging
  import re
  import typing
  from pathlib import Path
  import pkg_resources
  import pytest
  from .None import core, plugins
  from .job_environment import JobEnvironment
label_desc: Use image node_id 2 for calling a global function with example usage: test_executors(ex) without return types