def METHOD_NAME(lines: Sequence[str], record: Record) -> Tuple[int, str]:
    """Find the type and location of a single MySQL method call."""
    for current_line_number in range(record.line_number - 1, -1, -1):
        match = _CALLSITE_RE.match(lines[current_line_number])
        if match:
            return current_line_number, match.group(1).lower()
    raise Exception(
        f'Callsite for {record.filename}:{record.line_number} not found')