def METHOD_NAME(*args, **kwargs):
    output = old_generate_refs_for_kernel_parameters(*args, **kwargs)
    if "block_offset_0" in output:
        old_token = "auto & block_offset_"
        new_token = "auto block_offset_"
        assert output.count(old_token) == 3, \
            f"could not find '{old_token}' in '''\n{output}\n'''"
        output = output.replace(old_token, new_token)
        output += "\nblock_offset_generator(block, block_offset_0, block_offset_1, block_offset_2);"
    return output