code: def log_artifacts():
      # Upload artifacts
      with mlflow.start_run() as run, tempfile.TemporaryDirectory() as tmp_dir:
          tmp_path_a = os.path.join(tmp_dir, "a.txt")
          save_text(tmp_path_a, "0")
          tmp_sub_dir = os.path.join(tmp_dir, "dir")
          os.makedirs(tmp_sub_dir)
          tmp_path_b = os.path.join(tmp_sub_dir, "b.txt")
          save_text(tmp_path_b, "1")
          mlflow.log_artifact(tmp_path_a)
          mlflow.log_artifacts(tmp_sub_dir, artifact_path="dir")
          return run.info.run_id
  
file_path: mlflow/examples/mlflow_artifacts/example.py
imports: import os
  import tempfile
  from pprint import pprint
  import mlflow
  from mlflow.artifacts import download_artifacts
  from mlflow.tracking import MlflowClient
label_desc: Use image node_id 2 for calling a global function with example usage: log_artifacts() and returns: run