def METHOD_NAME(self, ranges):
    result = {}
    for filename, range_start, range_end in ranges:
        for line in range(range_start, range_end + 1):
            result[(filename, line)] = None
    obj = self.project.loader.find_object_containing(self.function.addr)
    if obj is None:
        l.error("There is a function whose address does not correspond to any loaded object")
        return {}
    for addr, filename_line in obj.addr_to_line.items():
        if filename_line in result:
            result[filename_line] = addr
    return result