code: def main(_):
      flags.mark_flags_as_mutual_exclusive(
          (EXECUTABLE_SPEC_FLAG.name, BEAM_EXECUTABLE_SPEC_FLAG.name),
          required=True,
      )
  
      if BEAM_EXECUTABLE_SPEC_FLAG.value is not None:
          executable_spec = (
              python_execution_binary_utils.deserialize_executable_spec(
                  BEAM_EXECUTABLE_SPEC_FLAG.value, with_beam=True
              )
          )
      else:
          executable_spec = (
              python_execution_binary_utils.deserialize_executable_spec(
                  EXECUTABLE_SPEC_FLAG.value, with_beam=False
              )
          )
      # Eagerly import class path from executable spec such that all artifact
      # references are resolved. This should come before parsing execution_info.
      _import_class_path(executable_spec)
      execution_info = system_flags.parse_execution_info()
      logging.info("execution_info = %r\n", execution_info)
      logging.info(
          "executable_spec = %s\n",
          text_format.MessageToString(executable_spec),
      )
  
      if MLMD_CONNECTION_CONFIG_FLAG.value:
          mlmd_connection_config = python_execution_binary_utils.deserialize_mlmd_connection_config(
              MLMD_CONNECTION_CONFIG_FLAG.value
          )
      else:
          mlmd_connection_config = None
  
      python_execution_lib.run(
          executable_spec, execution_info, mlmd_connection_config
      )
  
file_path: tfx/tfx/orchestration/python_execution_binary/entrypoint.py
imports: from typing import Union
  from absl import flags
  from absl import logging
  from tfx.orchestration.python_execution_binary import python_execution_binary_utils
  from tfx.orchestration.python_execution_binary import python_execution_lib
  from tfx.orchestration.python_execution_binary import system_flags
  from tfx.proto.orchestration import executable_spec_pb2
  from tfx.utils import import_utils
  from google.protobuf import text_format
label_desc: Use image node_id 2 for calling a global function with example usage: main(_) without return types