code: def list_artifacts(run_id, artifact_path):
      """
      Return all the artifacts directly under run's root artifact directory,
      or a sub-directory. The output is a JSON-formatted list.
      """
      artifact_path = artifact_path if artifact_path is not None else ""
      store = _get_store()
      artifact_uri = store.get_run(run_id).info.artifact_uri
      artifact_repo = get_artifact_repository(artifact_uri)
      file_infos = artifact_repo.list_artifacts(artifact_path)
      click.echo(_file_infos_to_json(file_infos))
  
file_path: mlflow/mlflow/store/artifact/cli.py
imports: import logging
  import click
  from mlflow.artifacts import download_artifacts
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.tracking import _get_store
  from mlflow.utils.proto_json_utils import message_to_json
label_desc: Use image node_id 4 for calling a global function with example usage: list_artifacts(run_id, artifact_path) without return types