def METHOD_NAME(file: str, line: int) -> str:
    try:
        with open(file, "r") as f:
            all_lines: List[str] = []
            for row in f:
                all_lines.append(row)
        # line numbers start at 1
        while line > 0:
            line -= 1
            current = all_lines[line]
            if " def " in current or current.startswith("def "):
                return current.split("def ")[1].split("(")[0]
        return file.rsplit("/", 1)[1]
    except Exception:
        return "<unknown>"