code: def _get_task_id():
      """Returns current task's id."""
      if FLAGS.lp_task_id is None:
          # Running under Vertex AI...
          cluster_spec = os.environ.get("CLUSTER_SPEC", None)
          return json.loads(cluster_spec).get("task").get("index")
  
      return FLAGS.lp_task_id
  
file_path: launchpad/launchpad/nodes/python/process_entry.py
imports: import contextlib
  import functools
  import json
  import os
  import sys
  from absl import app
  from absl import flags
  from absl import logging
  import cloudpickle
  from launchpad import flags
  from launchpad.launch import worker_manager
  from launchpad.launch import worker_manager_v2
  import six
label_desc: Use image node_id 2 for calling a global function with example usage: _get_task_id() and returns: FLAGS, json