code: def testDeprecatedMysqlMetadataConnectionConfig(self):
      self._set_required_env_vars(
          {
              "mysql_host": "mysql",
              "mysql_port": "3306",
              "mysql_database": "metadb",
              "mysql_user_name": "root",
              "mysql_user_password": "test",
          }
      )
  
      metadata_config = kubeflow_pb2.KubeflowMetadataConfig()
      metadata_config.mysql_db_service_host.environment_variable = (
          "mysql_host"
      )
      metadata_config.mysql_db_service_port.environment_variable = (
          "mysql_port"
      )
      metadata_config.mysql_db_name.environment_variable = (
          "mysql_database"
      )
      metadata_config.mysql_db_user.environment_variable = (
          "mysql_user_name"
      )
      metadata_config.mysql_db_password.environment_variable = (
          "mysql_user_password"
      )
  
      ml_metadata_config = (
          container_entrypoint._get_metadata_connection_config(
              metadata_config
          )
      )
      self.assertIsInstance(
          ml_metadata_config, metadata_store_pb2.ConnectionConfig
      )
      self.assertEqual(ml_metadata_config.mysql.host, "mysql")
      self.assertEqual(ml_metadata_config.mysql.port, 3306)
      self.assertEqual(ml_metadata_config.mysql.database, "metadb")
      self.assertEqual(ml_metadata_config.mysql.user, "root")
      self.assertEqual(ml_metadata_config.mysql.password, "test")
  
imports: import json
  import os
  from unittest import mock
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.orchestration import metadata
  from tfx.orchestration.kubeflow import container_entrypoint
  from tfx.orchestration.kubeflow import kubeflow_dag_runner
  from tfx.orchestration.kubeflow.proto import kubeflow_pb2
  from tfx.orchestration.portable import beam_executor_operator
  from tfx.orchestration.portable import data_types
  from tfx.orchestration.portable import execution_publish_utils
  from tfx.orchestration.portable import launcher
  from tfx.orchestration.portable import outputs_utils
  from tfx.orchestration.portable import python_driver_operator
  from tfx.orchestration.portable.mlmd import execution_lib
  from tfx.proto.orchestration import driver_output_pb2
  from tfx.proto.orchestration import execution_result_pb2
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import standard_artifacts
  from tfx.utils import io_utils
  from tfx.utils import test_case_utils
  from google.protobuf import json_format
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling the MLMDConfigTest obj's underlying member method code with example usage: obj.testDeprecatedMysqlMetadataConnectionConfig() without return types