code: def taskcluster_event_context():
      das_context = {}
  
      # Pre-filterting
      for k in os.environ.keys():
          if k == "GITHUB_HEAD_USER":
              os.environ["GITHUB_HEAD_USER_LOGIN"] = os.environ[k]
              del os.environ["GITHUB_HEAD_USER"]
  
      for k in os.environ.keys():
          if k == "TASK_ID":
              parts = string_to_dict(
                  "taskcluster.taskGroupId", os.environ[k]
              )
              das_context = merge_dicts(das_context, parts)
  
          if k.startswith("GITHUB_"):
              parts = string_to_dict(
                  k.lower()
                  .replace("_", ".")
                  .replace("github", "event"),
                  os.environ[k],
              )
              das_context = merge_dicts(das_context, parts)
  
      return das_context
  
imports: from __future__ import absolute_import, print_function, unicode_literals
  from glob import glob
  from functools import reduce
  import json
  import jsone
  import os
  import sys
  import requests
  import slugid
  import yaml
  import subprocess
  import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: taskcluster_event_context() and returns: das_context