“The Garden of Forking Paths”,In what ways does Jorge Luis Borges’ work “The Garden of Forking Paths” comment on the various meta-literary and self-referential theatrical texts from The Odyssey to Hamlet?

In what ways does Jorge Luis Borges’ work “The Garden of Forking Paths” comment on the various meta-literary and self-referential theatrical texts from The Odyssey to Hamlet?