def get_serialization_exclude(serializers, exclude, kwargs):
exclude = list(exclude)<EOL>options = [name.split("<STR_LIT:.>")[<NUM_LIT:0>] for name in serializers]<EOL>for key, value in kwargs.items():<EOL><INDENT>if key in ("<STR_LIT>",) and value is False:<EOL><INDENT>deprecation_warning(Warnings.W015.format(arg=key))<EOL>exclude.append(key)<EOL><DEDENT>elif key.split("<STR_LIT:.>")[<NUM_LIT:0>] in options:<EOL><INDENT>raise ValueError(Errors.E128.format(arg=key))<EOL><DEDENT><DEDENT>return exclude<EOL>
Helper function to validate serialization args and manage transition from
    keyword arguments (pre v2.1) to exclude argument.