code: def send_task(t):
      url = TASKCLUSTER_API_BASEURL % {"task_id": t["taskId"]}
      del t["taskId"]
  
      r = requests.put(url, json=t)
  
      print(url, r.status_code)
      if r.status_code != requests.codes.ok:
          print(json.dumps(t, indent=2))
          print(r.content)
          print(json.loads(r.content.decode())["message"])
  
      return r.status_code == requests.codes.ok
  
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 8 for calling a global function with example usage: send_task(t) and returns: unknown