code: def valid_model_package_config(
      valid_iam_role_arn,
      valid_environment_config,
      valid_containers_config,
  ):
      inference_specification = {
          "Containers": valid_containers_config,
      }
      transform_job_definition = {
          "Environment": valid_environment_config,
          "TransformOutput": {"KmsKeyId": "kmskeyid1"},
          "TransformResources": {"VolumeKmsKeyId": "volumekmskeyid1"},
      }
      validation_specification = {
          "ValidationProfiles": [
              {"TransformJobDefinition": transform_job_definition}
          ],
          "ValidationRole": valid_iam_role_arn,
      }
      return {
          "InferenceSpecification": inference_specification,
          "ValidationSpecification": validation_specification,
      }
  
imports: from __future__ import absolute_import
  import os
  import pytest
  from mock import MagicMock
label_desc: Use image node_id 12 for calling a global function with example usage: valid_model_package_config(valid_iam_role_arn, valid_environment_config, valid_containers_config) and returns: dict