Highlight create in Pyton

Can you please tell me how to create a highlight of the object? Does anyone have a sample code?