code: def unique(values, stable=False):
      assert is_iterable(values)
      if stable:
          s = set()
          r = []
          for v in values:
              if not v in s:
                  r.append(v)
                  s.add(v)
          return r
      else:
          return list(set(values))
  
imports: import operator
  from b2.util import is_iterable
label_desc: Use image node_id 1 for calling a global function with example usage: unique(values, stable) and returns: r, list