code: def overlap(a, b):
      
      _check_steps(a, b)
      return a.stop >= b.start and b.stop >= a.start
docs: Check if  two ranges overlap.
  
      Parameters
      ----------
      a : range
          The first range.
      b : range
          The second range.
  
      Returns
      -------
      overlaps : bool
          Do these ranges overlap.
  
      Notes
      -----
      This function does not support ranges with step != 1.