code: def mysql_metadata_connection_config(
      host: str, port: int, database: str, username: str, password: str
  ) -> metadata_store_pb2.ConnectionConfig:
      """Convenience function to create mysql-based metadata connection config.
  
      Args:
        host: The name or network address of the instance of MySQL to connect to.
        port: The port MySQL is using to listen for connections.
        database: The name of the database to use.
        username: The MySQL login account being used.
        password: The password for the MySQL account being used.
  
      Returns:
        A metadata_store_pb2.ConnectionConfig based on given metadata db uri.
      """
      return metadata_store_pb2.ConnectionConfig(
          mysql=metadata_store_pb2.MySQLDatabaseConfig(
              host=host,
              port=port,
              database=database,
              user=username,
              password=password,
          )
      )
  
imports: import collections
  import copy
  import hashlib
  import itertools
  import os
  import random
  import time
  import types
  from typing import Any, Dict, List, Optional, Set, Tuple, Type, Union
  import absl
  from tfx.dsl.io import fileio
  from tfx.orchestration import data_types
  from tfx.orchestration.portable.mlmd import event_lib
  from tfx.types import artifact
  from tfx.types import artifact_utils
  import ml_metadata
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: mysql_metadata_connection_config(host, port, database, username, password) and returns: metadata_store_pb2