code: def create_task_id(cls, is_foreach):
      if is_foreach:
          return cls.FOREACH_TASK_ID
      else:
          return cls.TASK_ID
  
imports: import hashlib
  import json
  import sys
  import platform
  from collections import defaultdict
  from datetime import datetime, timedelta
label_desc: Use image node_id 1 for calling the AIRFLOW_MACROS obj's underlying member method code with example usage: obj.create_task_id(cls, is_foreach) and returns: cls, cls