how to set relationship value of managedObject in NSBatchInsertRequest

setting managedObject's relationship value will occur error like 'Illegal attempt to establish a relationship ‘u’ser between objects in different contexts in NSBatchInsertRequest
Setting relationships in batch requests is not supported. Check out the WWDC talks from 2019 and 2020.
how to set relationship value of managedObject in NSBatchInsertRequest
 
 
Q