code: def create_exec_node_task(
      node_uid,
      execution=None,
      contexts=None,
      exec_properties=None,
      input_artifacts=None,
      output_artifacts=None,
      executor_output_uri=None,
      stateful_working_dir=None,
      tmp_dir=None,
      pipeline=None,
      cancel_type: Optional[task_lib.NodeCancelType] = None,
  ) -> task_lib.ExecNodeTask:
      """Creates an `ExecNodeTask` for testing."""
      return task_lib.ExecNodeTask(
          node_uid=node_uid,
          execution_id=execution.id if execution else 1,
          contexts=contexts or [],
          exec_properties=exec_properties or {},
          input_artifacts=input_artifacts or {},
          output_artifacts=output_artifacts or {},
          executor_output_uri=executor_output_uri or "",
          stateful_working_dir=stateful_working_dir or "",
          tmp_dir=tmp_dir or "",
          pipeline=pipeline or mock.Mock(),
          cancel_type=cancel_type,
      )
  
imports: import os
  from typing import Dict, Optional
  import uuid
  from absl.testing.absltest import mock
  from tfx import types
  from tfx.orchestration import data_types_utils
  from tfx.orchestration import metadata
  from tfx.orchestration import node_proto_view
  from tfx.orchestration.experimental.core import env
  from tfx.orchestration.experimental.core import mlmd_state
  from tfx.orchestration.experimental.core import pipeline_state
  from tfx.orchestration.experimental.core import service_jobs
  from tfx.orchestration.experimental.core import task
  from tfx.orchestration import mlmd_connection_manager
  from tfx.orchestration.portable import cache_utils
  from tfx.orchestration.portable import execution_publish_utils
  from tfx.orchestration.portable import outputs_utils
  from tfx.orchestration.portable.mlmd import context_lib
  from tfx.orchestration.portable.mlmd import execution_lib
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import standard_artifacts
  from tfx.utils import status
  from tfx.utils import test_case_utils
  from tfx.utils import typing_utils
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 13 for calling a global function with example usage: create_exec_node_task(node_uid, execution, contexts, exec_properties, input_artifacts, output_artifacts, executor_output_uri, stateful_working_dir, tmp_dir, pipeline, cancel_type) and returns: task_lib