code: def pytest_collection_modifyitems(config, items):
      """
      Place the slowest tests at tne end of the test execution order if `order-tests` flag is set.
      Adapted from https://stackoverflow.com/a/54254338/8505509
      """
      if config.option.order_tests:
          items.sort(
              key=lambda item: 2
              if item.get_closest_marker("slow")
              else 1
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_collection_modifyitems(config, items) without return types