code: def test_artifact_logging_resolution_works_with_non_root_working_directory(
      tmp_path, monkeypatch
  ):
      text_file = tmp_path.joinpath("test.txt")
      text_file.write_text("test")
      cwd = tmp_path.joinpath("cwd")
      cwd.mkdir()
      monkeypatch.chdir(cwd)
      experiment_id = mlflow.create_experiment(
          "test_exp_c", "some_path"
      )
      not_cwd = tmp_path.joinpath("not_cwd")
      not_cwd.mkdir()
      monkeypatch.chdir(not_cwd)
  
      tracking_uri = mlflow.get_tracking_uri()
      with mlflow.start_run(experiment_id=experiment_id) as run:
          _assert_artifact_uri(
              tracking_uri,
              str(
                  cwd.joinpath(
                      "some_path",
                      run.info.run_id,
                      "artifacts",
                      text_file.name,
                  )
              ),
              ArtifactReturnType(tmp_path, text_file, text_file.name),
              run.info.run_id,
          )
  
imports: import pathlib
  import uuid
  from collections import namedtuple
  from typing import NamedTuple
  from unittest import mock
  import pytest
  import mlflow
  from mlflow.exceptions import MlflowException
  from mlflow.utils.file_utils import mkdir, path_to_local_file_uri
  from mlflow.utils.os import is_windows
label_desc: Use image node_id 19 for calling a global function with example usage: test_artifact_logging_resolution_works_with_non_root_working_directory(tmp_path, monkeypatch) without return types