code: def _find_fuzzy_line(
          py_line_no, py_by_line_no, cheetah_by_line_no, prefer_first
  ):
      
      stripped_line = _fuzz_py_line(py_by_line_no[py_line_no])
      cheetah_lower_bound, cheetah_upper_bound = _find_bounds(
          py_line_no, py_by_line_no, cheetah_by_line_no,
      )
  
      sliced = list(enumerate(cheetah_by_line_no))[
          cheetah_lower_bound:cheetah_upper_bound
      ]
      if not prefer_first:
          sliced = reversed(sliced)
  
      for line_no, line in sliced:
          if stripped_line in _fuzz_cheetah_line(line):
              return line_no
      else:
          # We've failed to find a matching line
          return 0
docs: Attempt to fuzzily find matching lines.