code: def intersecting_ranges(ranges):
      """Return any ranges that intersect.
  
      Parameters
      ----------
      ranges : iterable[ranges]
          A sequence of ranges to check for intersections.
  
      Returns
      -------
      intersections : iterable[ranges]
          A sequence of all of the ranges that intersected in ``ranges``.
  
      Examples
      --------
      >>> ranges = [range(0, 1), range(2, 5), range(4, 7)]
      >>> list(intersecting_ranges(ranges))
      [range(2, 5), range(4, 7)]
  
      >>> ranges = [range(0, 1), range(2, 3)]
      >>> list(intersecting_ranges(ranges))
      []
  
      >>> ranges = [range(0, 1), range(1, 2)]
      >>> list(intersecting_ranges(ranges))
      [range(0, 1), range(1, 2)]
      """
      ranges = sorted(ranges, key=op.attrgetter("start"))
      return sorted_diff(ranges, group_ranges(ranges))
  
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 9 for calling a global function with example usage: intersecting_ranges(ranges) and returns: sorted_diff