Create Library Override of Data Block
Got it: 

obj = bpy.context.view_layer.objects.active
obj.data.override_create(remap_local_usages=True)


API link: https://docs.blender.org/api/current/bpy.types.ID.html#bpy.types.ID.override_create