def METHOD_NAME(
    project: str,
    location: str,
    root_dir: str,
    transform_output: Input[Artifact],
    metadata: Input[Artifact],
    tuning_result_input: Input[Artifact],
    instance_baseline: Input[Artifact],
    instance_schema_path: Input[Artifact],
    prediction_image_uri: str,
    gcp_resources: dsl.OutputPath(str),
    model_architecture: Output[Artifact],
    unmanaged_container_model: Output[UnmanagedContainerModel],
    explanation_metadata: dsl.OutputPath(dict),
    explanation_metadata_artifact: Output[Artifact],
    explanation_parameters: dsl.OutputPath(dict),
    encryption_spec_key_name: Optional[str] = '',