code: def resolve_default_artifact_root(
      serve_artifacts: bool,
      default_artifact_root: str,
      backend_store_uri: str,
      resolve_to_local: bool = False,
  ) -> str:
      if serve_artifacts and not default_artifact_root:
          default_artifact_root = DEFAULT_ARTIFACTS_URI
      elif not serve_artifacts and not default_artifact_root:
          if is_local_uri(backend_store_uri):
              default_artifact_root = backend_store_uri
          elif resolve_to_local:
              default_artifact_root = (
                  DEFAULT_LOCAL_FILE_AND_ARTIFACT_PATH
              )
          else:
              msg = (
                  "Option 'default-artifact-root' is required when backend store is not "
                  "local file based and artifact serving is disabled."
              )
              eprint(msg)
              raise click.UsageError(message=msg)
      return default_artifact_root
  
imports: import click
  from mlflow.store.tracking import DEFAULT_ARTIFACTS_URI, DEFAULT_LOCAL_FILE_AND_ARTIFACT_PATH
  from mlflow.utils.logging_utils import eprint
  from mlflow.utils.uri import is_local_uri
label_desc: Use image node_id 1 for calling a global function with example usage: resolve_default_artifact_root(serve_artifacts, default_artifact_root, backend_store_uri, resolve_to_local) and returns: default_artifact_root