code: def pytest_ignore_collect(path, config):
      outcome = yield
      if not outcome.get_result() and config.getoption(
          "ignore_flavors"
      ):
          # If not ignored by the default hook and `--ignore-flavors` specified
  
          # Ignored files and directories must be included in dev/run-python-flavor-tests.sh
          model_flavors = [
              # Tests of flavor modules.
              "tests/azureml",
              "tests/catboost",
              "tests/diviner",
              "tests/fastai",
              "tests/gluon",
              "tests/h2o",
              "tests/johnsnowlabs",
              "tests/keras",
              "tests/keras_core",
              "tests/langchain",
              "tests/lightgbm",
              "tests/mleap",
              "tests/models",
              "tests/onnx",
              "tests/openai",
              "tests/paddle",
              "tests/pmdarima",
              "tests/promptflow",
              "tests/prophet",
              "tests/pyfunc",
              "tests/pytorch",
              "tests/sagemaker",
              "tests/sentence_transformers",
              "tests/shap",
              "tests/sklearn",
              "tests/spacy",
              "tests/spark",
              "tests/statsmodels",
              "tests/tensorflow",
              "tests/transformers",
              "tests/xgboost",
              # Lazy loading test.
              "tests/test_mlflow_lazily_imports_ml_packages.py",
              # Tests of utils.
              "tests/utils/test_model_utils.py",
              # This test is included here because it imports many big libraries like tf, keras, etc.
              "tests/tracking/fluent/test_fluent_autolog.py",
              # Cross flavor autologging related tests.
              "tests/autologging/test_autologging_safety_unit.py",
              "tests/autologging/test_autologging_behaviors_unit.py",
              "tests/autologging/test_autologging_behaviors_integration.py",
              "tests/autologging/test_autologging_utils.py",
              "tests/autologging/test_training_session.py",
              # Opt in authentication feature.
              "tests/server/auth",
              "tests/gateway",
          ]
  
          relpath = os.path.relpath(str(path))
          relpath = relpath.replace(
              os.sep, posixpath.sep
          )  # for Windows
  
          if relpath in model_flavors:
              outcome.force_result(True)
  
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 9 for calling a global function with example usage: pytest_ignore_collect(path, config) without return types