code: def pytest_collection_modifyitems(
      session, config, items
  ):  # pylint: disable=unused-argument
      # Executing `tests.server.test_prometheus_exporter` after `tests.server.test_handlers`
      # results in an error because Flask >= 2.2.0 doesn't allow calling setup method such as
      # `before_request` on the application after the first request. To avoid this issue,
      # execute `tests.server.test_prometheus_exporter` first by reordering the test items.
      items.sort(
          key=lambda item: item.module.__name__
          != "tests.server.test_prometheus_exporter"
      )
  
      # Select the tests to run based on the group and splits
      if (splits := config.getoption("--splits")) and (
          group := config.getoption("--group")
      ):
          items[:] = items[(group - 1) :: splits]
  
imports: import json
  import os
  import posixpath
  import shutil
  import subprocess
  import sys
  import click
  import pytest
  from mlflow.environment_variables import _MLFLOW_TESTING, MLFLOW_TRACKING_URI
  from mlflow.version import VERSION
  from tests.helper_functions import get_safe_port
label_desc: Use image node_id 10 for calling a global function with example usage: pytest_collection_modifyitems(session, config, items) without return types