code: def split(data, func):
      l, r = [], []
      for e in data:
          if func(e):
              l.append(e)
          else:
              r.append(e)
      return l, r
  
imports: import functools
  import threading
  import collections
  import contextlib
  import six
label_desc: Use image node_id 9 for calling a global function with example usage: split(data, func) and returns: l,  r