code: def get_node_executor_spec(
      deployment_config: pipeline_pb2.IntermediateDeploymentConfig,
      node_id: str,
  ) -> Optional[message.Message]:
      """Returns the executor spec for the given node if it exists."""
      executor_spec = deployment_config.executor_specs.get(node_id)
      if executor_spec is None:
          return None
      return proto_utils.unpack_proto_any(executor_spec)
  
imports: from typing import Optional
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.utils import proto_utils
  from google.protobuf import message
label_desc: Use image node_id 3 for calling a global function with example usage: get_node_executor_spec(deployment_config, node_id) and returns: proto_utils, None