code: def mock_kubernetes_job_template(tmp_path):
      k8s_yaml = tmp_path.joinpath("kubernetes_job_template.yaml")
      k8s_yaml.write_text(
          """
  apiVersion: batch/v1
  kind: Job
  metadata:
    name: "{replaced with MLflow Project name}"
    namespace: mlflow
  spec:
    ttlSecondsAfterFinished: 100
    backoffLimit: 0
    template:
      spec:
        containers:
        - name: "{replaced with MLflow Project name}"
          image: "{replaced with URI of Docker image created during Project execution}"
          command: ["{replaced with MLflow Project entry point command}"]
          resources:
            limits:
              memory: 512Mi
            requests:
              memory: 256Mi
        restartPolicy: Never
  """.lstrip()
      )
      return str(k8s_yaml)
  
imports: import json
  import os
  import shutil
  import subprocess
  import uuid
  from unittest import mock
  import git
  import pytest
  import yaml
  from databricks_cli.configure.provider import DatabricksConfig
  import mlflow
  from mlflow import MlflowClient
  from mlflow.entities import RunStatus, SourceType, ViewType
  from mlflow.environment_variables import MLFLOW_CONDA_CREATE_ENV_CMD, MLFLOW_CONDA_HOME
  from mlflow.exceptions import ExecutionException, MlflowException
  from mlflow.projects import _parse_kubernetes_config, _resolve_experiment_id
  from mlflow.store.tracking.file_store import FileStore
  from mlflow.utils import PYTHON_VERSION
  from mlflow.utils.conda import CONDA_EXE, get_or_create_conda_env
  from mlflow.utils.mlflow_tags import LEGACY_MLFLOW_GIT_BRANCH_NAME, LEGACY_MLFLOW_GIT_REPO_URL, MLFLOW_GIT_BRANCH, MLFLOW_GIT_REPO_URL, MLFLOW_PARENT_RUN_ID, MLFLOW_PROJECT_BACKEND, MLFLOW_PROJECT_ENTRY_POINT, MLFLOW_PROJECT_ENV, MLFLOW_SOURCE_NAME, MLFLOW_SOURCE_TYPE, MLFLOW_USER
  from mlflow.utils.process import ShellCommandException
  from tests.projects.utils import TEST_PROJECT_DIR, TEST_PROJECT_NAME, validate_exit_status
label_desc: Use image node_id 20 for calling a global function with example usage: mock_kubernetes_job_template(tmp_path) and returns: str