code: def _find_quote_position(text):
          
          pos = {}
          is_found_left_quote = False
  
          for idx, character in enumerate(text):
              if is_found_left_quote is False:
                  if character == "'" or character == '"':
                      is_found_left_quote = True
                      quote = character
                      left_pos = idx
              else:
                  if character == quote and text[idx - 1] != '\\':
                      pos[left_pos] = idx
                      is_found_left_quote = False
  
          if is_found_left_quote:
              raise IndexError("No matching close quote at: " + str(left_pos))
  
          return pos
docs: Return the start and end position of pairs of quotes.