Smart record video deepstream python

how to use tee and smart record in python apps ?
any usecase on splitmuxsink link ???

This sounds like a gStreamer question so the answer will be fairly similar for all devices (other than the way the src element is configured). This looks like a good place for you to start:
https://forums.raspberrypi.com/viewtopic.php?t=235757