def create_model_and_configuration(run, project, question_tag, model_type, instance_type):
    ecr = ECR()
    s3 = S3()
    sm = Sagemaker()
    image_name = get_image_name(run, project)
    ecr_image_name = ecr.get_ecr_image_name(image_name)
    s3_model_path = s3.get_model_s3_path(image_name)
    tags = [{'Key': 'project_name', 'Value': project}, {'Key': 'question_tag', 'Value': question_tag}, {'Key': 'run_name', 'Value': run}, {'Key': 'model_type', 'Value': model_type}]
    sm.create_model_and_configuration(ecr_image_name, s3_model_path, tags=tags, instance_type=instance_type)
def create_model_and_configuration(run, project, question_tag, model_type, instance_type):
    ecr = ECR()
    s3 = S3()
    sm = Sagemaker()
    image_name = get_image_name(run, project)
    ecr_image_name = ecr.get_ecr_image_name(image_name)
    s3_model_path = s3.get_model_s3_path(image_name)
    tags = [{'Key': 'project_name', 'Value': project}, {'Key': 'question_tag', 'Value': question_tag}, {'Key': 'run_name', 'Value': run}, {'Key': 'model_type', 'Value': model_type}]
    sm.create_model_and_configuration(ecr_image_name, s3_model_path, tags=tags, instance_type=instance_type)