Importing data through hooks for child table

hey there, I was searching for the syntax for a “insert_after” hook where in a doctype when a user enter data in a child table it get sent to different doctype child table.

what should be the syntax for it?

check the reference.