obj : Any
The object you wish to copy.
on_fail : , default ‘raise’
• ‘raise’ – re‑raise copy error (standard behaviour).
• ‘skip’ – drop the offending element from the result.
• ‘shallow’ – insert the original element unchanged.
_memo : dict or None (internal)
Memoisation dict to preserve identity & avoid infinite recursion.Returns