code: def create_app_from_env() -> GatewayAPI:
      """
      Load the path from the environment variable and generate the GatewayAPI app instance.
      """
      if config_path := MLFLOW_GATEWAY_CONFIG.get():
          return deployments_create_app_from_path(config_path)
  
      raise MlflowException(
          f"Environment variable {MLFLOW_GATEWAY_CONFIG!r} is not set. "
          "Please set it to the path of the gateway configuration file."
      )
  
imports: from mlflow.deployments.server.app import GatewayAPI
  from mlflow.deployments.server.app import create_app_from_config
  from mlflow.deployments.server.app import create_app_from_path
  from mlflow.environment_variables import MLFLOW_GATEWAY_CONFIG
  from mlflow.exceptions import MlflowException
label_desc: Use image node_id 1 for calling a global function with example usage: create_app_from_env() and returns: deployments_create_app_from_path