def METHOD_NAME(
    self, inputs: SageMakerCreateModelInputs, outputs: SageMakerCreateModelOutputs,
) -> Dict:
    ### Documentation: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sagemaker.html#SageMaker.Client.create_model
    request = self._get_request_template("model")
    request["ModelName"] = self._model_name
    request["PrimaryContainer"]["Environment"] = inputs.environment
    if inputs.secondary_containers:
        request["Containers"] = inputs.secondary_containers
        request.pop("PrimaryContainer")
    else:
        request.pop("Containers")
        ### Update primary container and handle input errors
        if inputs.container_host_name:
            request["PrimaryContainer"][
                "ContainerHostname"
            ] = inputs.container_host_name
        else:
            request["PrimaryContainer"].pop("ContainerHostname")
        if inputs.model_package:
            request["PrimaryContainer"]["ModelPackageName"] = inputs.model_package
            request["PrimaryContainer"].pop("Image")
            request["PrimaryContainer"].pop("ModelDataUrl")
        elif inputs.image:
            request["PrimaryContainer"]["Image"] = inputs.image
            if inputs.model_artifact_url:
                request["PrimaryContainer"][
                    "ModelDataUrl"
                ] = inputs.model_artifact_url
            else:
                request["PrimaryContainer"].pop("ModelDataUrl")
            request["PrimaryContainer"].pop("ModelPackageName")
        else:
            logging.error("Please specify an image OR a model package name.")
            raise Exception("Could not make create model request.")
    request["ExecutionRoleArn"] = inputs.role
    request["EnableNetworkIsolation"] = inputs.network_isolation
    ### Update or pop VPC configs
    if inputs.vpc_security_group_ids and inputs.vpc_subnets:
        request["VpcConfig"][
            "SecurityGroupIds"
        ] = inputs.vpc_security_group_ids.split(",")
        request["VpcConfig"]["Subnets"] = inputs.vpc_subnets.split(",")
    else:
        request.pop("VpcConfig")
    self._enable_tag_support(request, inputs)
    return request