code: def _get_mlflow_install_step(dockerfile_context_dir, mlflow_home):
      """
      Get docker build commands for installing MLflow given a Docker context dir and optional source
      directory
      """
      maven_proxy = _get_maven_proxy()
      if mlflow_home:
          mlflow_dir = _copy_project(
              src_path=mlflow_home, dst_path=dockerfile_context_dir
          )
          return (
              f"COPY {mlflow_dir} /opt/mlflow\n"
              "RUN pip install /opt/mlflow\n"
              "RUN cd /opt/mlflow/mlflow/java/scoring && "
              f"mvn --batch-mode package -DskipTests {maven_proxy} && "
              "mkdir -p /opt/java/jars && "
              "mv /opt/mlflow/mlflow/java/scoring/target/"
              "mlflow-scoring-*-with-dependencies.jar /opt/java/jars\n"
          )
      else:
          return (
              f"RUN pip install mlflow=={VERSION}\n"
              "RUN mvn"
              " --batch-mode dependency:copy"
              f" -Dartifact=org.mlflow:mlflow-scoring:{VERSION}:pom"
              f" -DoutputDirectory=/opt/java {maven_proxy}\n"
              "RUN mvn"
              " --batch-mode dependency:copy"
              f" -Dartifact=org.mlflow:mlflow-scoring:{VERSION}:jar"
              f" -DoutputDirectory=/opt/java/jars {maven_proxy}\n"
              f"RUN cp /opt/java/mlflow-scoring-{VERSION}.pom /opt/java/pom.xml\n"
              "RUN cd /opt/java && mvn "
              "--batch-mode dependency:copy-dependencies "
              f"-DoutputDirectory=/opt/java/jars {maven_proxy}\n"
          )
  
file_path: mlflow/mlflow/models/docker_utils.py
imports: import logging
  import os
  from subprocess import PIPE, STDOUT, Popen
  from urllib.parse import urlparse
  from mlflow.utils import env_manager
  from mlflow.utils.file_utils import TempDir, _copy_project
  from mlflow.utils.logging_utils import eprint
  from mlflow.version import VERSION
label_desc: Use image node_id 2 for calling a global function with example usage: _get_mlflow_install_step(dockerfile_context_dir, mlflow_home) and returns: str, mlflow_dir, str, maven_proxy, str, str, VERSION, str, VERSION, str, maven_proxy, str, VERSION, str, maven_proxy, str, VERSION, str, maven_proxy, str