class_docstr: Handles artifacts associated with a model version in the model registry via URIs of the form:
    - `models:/<model_name>/<model_version>`
    - `models:/<model_name>/<stage>`  (refers to the latest model version in the given stage)
    - `models:/<model_name>/latest` (refers to the latest of all model versions)
  It is a light wrapper that resolves the artifact path to an absolute URI then instantiates
  and uses the artifact repository for that URI.
docstr: Return all the artifacts for this run_id directly under path. If path is a file, returns
  an empty list. Will error if path is neither a file nor directory.
  
  :param path: Relative source path that contain desired artifacts
  
  :return: List of artifacts as FileInfo listed directly under path.
docstr_tok: ["Return","all","the","artifacts","for","this","run_id","directly","under","path",".","If","path","is","a","file",",","returns","an","empty","list",".","Will","error","if","path","is","neither","a","file","nor","directory",".",":","param","path",":","Relative","source","path","that","contain","desired","artifacts",":","return",":","List","of","artifacts","as","FileInfo","listed","directly","under","path","."]
code: def list_artifacts(self, path):
      """
      Return all the artifacts for this run_id directly under path. If path is a file, returns
      an empty list. Will error if path is neither a file nor directory.
  
      :param path: Relative source path that contain desired artifacts
  
      :return: List of artifacts as FileInfo listed directly under path.
      """
      return self.repo.list_artifacts(path)
  
imports: import logging
  import os
  import urllib.parse
  import mlflow
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.artifact_repo import ArtifactRepository
  from mlflow.store.artifact.databricks_models_artifact_repo import DatabricksModelsArtifactRepository
  from mlflow.store.artifact.unity_catalog_models_artifact_repo import UnityCatalogModelsArtifactRepository
  from mlflow.store.artifact.utils.models import get_model_name_and_version, is_using_databricks_registry
  from mlflow.utils.file_utils import write_yaml
  from mlflow.utils.uri import add_databricks_profile_info_to_artifact_uri, get_databricks_profile_uri_from_artifact_uri, is_databricks_unity_catalog_uri
label_desc: Use image node_id 8 for calling the ModelsArtifactRepository obj's underlying member method code with example usage: obj.list_artifacts(path) and returns: self