code: def test_mlflow_artifacts_example(tmp_path):
      root = pathlib.Path(mlflow.__file__).parents[1]
      # On GitHub Actions, remove generated images to save disk space
      rmi_option = "--rmi all" if is_github_actions() else ""
      cmd = f"""
  err=0
  trap 'err=1' ERR
  ./build.sh
  docker-compose run -v ${{PWD}}/example.py:/app/example.py client python example.py
  docker-compose logs
  docker-compose down {rmi_option} --volumes --remove-orphans
  test $err = 0
  """
      script_path = tmp_path.joinpath("test.sh")
      script_path.write_text(cmd)
      subprocess.run(
          ["bash", script_path],
          check=True,
          cwd=os.path.join(root, "examples", "mlflow_artifacts"),
      )
  
imports: import cgi
  import os
  import pathlib
  import subprocess
  import tempfile
  from collections import namedtuple
  import pytest
  import requests
  import mlflow
  from mlflow import MlflowClient
  from mlflow.artifacts import download_artifacts
  from tests.helper_functions import LOCALHOST, get_safe_port
  from tests.tracking.integration_test_utils import _await_server_up_or_die
label_desc: Use image node_id 13 for calling a global function with example usage: test_mlflow_artifacts_example(tmp_path) without return types