code: def deserialize_executable_spec(
      executable_spec_b64: str,
      with_beam: bool = False,
  ) -> Union[
      executable_spec_pb2.PythonClassExecutableSpec,
      executable_spec_pb2.BeamExecutableSpec,
  ]:
      """De-serializes an executable spec from base64 flag."""
      if with_beam:
          return executable_spec_pb2.BeamExecutableSpec.FromString(
              base64.b64decode(executable_spec_b64)
          )
      return executable_spec_pb2.PythonClassExecutableSpec.FromString(
          base64.b64decode(executable_spec_b64)
      )
  
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 3 for calling a global function with example usage: deserialize_executable_spec(executable_spec_b64, with_beam) and returns: executable_spec_pb2, executable_spec_pb2