def METHOD_NAME(m):
    fname = m.group(1)
    sub_path = os.path.join(os.path.dirname(path), fname)
    with open(sub_path, encoding="utf-8") as file_:
        for i, line in enumerate(file_, 1):
            buf.append((i, line))
    return fname