code: def _unwrap_executable_spec(
      executable_spec: Optional[
          local_deployment_config_pb2.ExecutableSpec
      ],
  ) -> Optional[message.Message]:
      """Unwraps the one of spec from ExecutableSpec."""
      return (
          getattr(executable_spec, executable_spec.WhichOneof("spec"))
          if executable_spec
          else None
      )
  
file_path: tfx/tfx/orchestration/local/runner_utils.py
imports: from typing import Optional
  from absl import logging
  from tfx.proto.orchestration import local_deployment_config_pb2
  from tfx.proto.orchestration import metadata_pb2
  from tfx.proto.orchestration import pipeline_pb2
  from google.protobuf import any_pb2
  from google.protobuf import message
label_desc: Use image node_id 8 for calling a global function with example usage: _unwrap_executable_spec(executable_spec) and returns: unknown