code: def pytest_cmdline_main(config):
      group = config.getoption("group")
      splits = config.getoption("splits")
  
      if splits is None and group is None:
          return None
  
      if splits and group is None:
          raise pytest.UsageError("`--group` is required")
  
      if group and splits is None:
          raise pytest.UsageError("`--splits` is required")
  
      if splits < 0:
          raise pytest.UsageError("`--splits` must be >= 1")
  
      if group < 1 or group > splits:
          raise pytest.UsageError(
              "`--group` must be between 1 and {splits}"
          )
  
      return None
  
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 3 for calling a global function with example usage: pytest_cmdline_main(config) and returns: None, None