code: def deserialize_mlmd_connection_config(
      mlmd_connection_config_b64: str,
  ) -> metadata.ConnectionConfigType:
      """De-serializes an MLMD connection config from base64 flag."""
      mlmd_connection_config = (
          metadata_pb2.MLMDConnectionConfig.FromString(
              base64.b64decode(mlmd_connection_config_b64)
          )
      )
      return getattr(
          mlmd_connection_config,
          mlmd_connection_config.WhichOneof("connection_config"),
      )
  
file_path: tfx/tfx/orchestration/python_execution_binary/python_execution_binary_utils.py
imports: import base64
  from typing import Union
  from tfx.orchestration import metadata
  from tfx.orchestration.portable import data_types
  from tfx.proto.orchestration import executable_spec_pb2
  from tfx.proto.orchestration import execution_invocation_pb2
  from tfx.proto.orchestration import metadata_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: deserialize_mlmd_connection_config(mlmd_connection_config_b64) and returns: getattr