I am facing an issue with Pylint duplicate-code warning and need some help.

I want to disable the duplicate-code warning because I expect some pieces of code to be duplicated, but I am unable to suppress the pylint warning.

Still now I  have tried # pylint: disable=duplicate-code.

Thanks in advance