code: def train_log_and_register_model(model_name, is_dummy=False):
      run_id, _ = train_and_log_model(is_dummy)
      runs_uri = f"runs:/{run_id}/train/model"
      mv = mlflow.register_model(runs_uri, model_name)
      return f"models:/{mv.name}/{mv.version}"
  
imports: import os
  import random
  import shutil
  import string
  from contextlib import contextmanager
  from pathlib import Path
  from typing import Generator, Optional
  from sklearn.datasets import load_diabetes, load_iris
  from sklearn.dummy import DummyClassifier, DummyRegressor
  from sklearn.linear_model import LinearRegression, LogisticRegression
  import mlflow
  from mlflow.recipes.step import BaseStep
  from mlflow.recipes.steps.split import _OUTPUT_TEST_FILE_NAME, _OUTPUT_VALIDATION_FILE_NAME
label_desc: Use image node_id 5 for calling a global function with example usage: train_log_and_register_model(model_name, is_dummy) and returns: str, mv, str, mv