code: def serialize_execution_info(
      execution_info: data_types.ExecutionInfo,
  ) -> str:
      """Serializes the ExecutionInfo class from a base64 flag."""
      execution_info_proto = execution_info.to_proto()
      return base64.b64encode(
          execution_info_proto.SerializeToString()
      ).decode("ascii")
  
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 6 for calling a global function with example usage: serialize_execution_info(execution_info) and returns: base64