code: def line_range(self, line_number):
      
      if line_number <= 0 or line_number > len(self.lines):
        raise IndexError('NOTE: Python file line numbers are offset by 1.')
  
      if line_number not in self.logical_lines:
        return slice(line_number, line_number + 1)
      else:
        start, stop, _ = self.logical_lines[line_number]
        return slice(start, stop)
docs: Return a slice for the given line number