code: def export_parent_task_ids(output_file):
      input = os.environ["METAFLOW_SPLIT_PARENT_TASK_ID"]
      task_ids = DynamoDbClient().get_parent_task_ids_for_foreach_join(
          input
      )
      with open(output_file, "w") as f:
          f.write(
              "export METAFLOW_PARENT_TASK_IDS=%s" % ",".join(task_ids)
          )
      os.chmod(output_file, 509)
  
imports: import json
  import os
  import sys
  from .dynamo_db_client import DynamoDbClient
label_desc: Use image node_id 2 for calling a global function with example usage: export_parent_task_ids(output_file) without return types