code: def sorted_diff(rs, ss):
      try:
          r, rs = peek(rs)
      except StopIteration:
          return
  
      try:
          s, ss = peek(ss)
      except StopIteration:
          for r in rs:
              yield r
          return
  
      rtup = (r.start, r.stop)
      stup = (s.start, s.stop)
      if rtup == stup:
          next(rs)
          next(ss)
      elif rtup < stup:
          yield next(rs)
      else:
          next(ss)
  
      for t in sorted_diff(rs, ss):
          yield t
  
file_path: zipline/zipline/utils/range.py
imports: import operator
  from six import PY2
  from toolz import peek
  from zipline.utils.functional import foldr
label_desc: Use image node_id 8 for calling a global function with example usage: sorted_diff(rs, ss) without return types