In general, I find GitPython's doc to be difficult to parse, mostly because the examples are written in the same kind of manpage notation that gave me a steep learning curve back when I was first learning Unix.
After searching for awhile, I found this page of the doc that tries to show how to clone a remote repo:
https://gitpython.readthedocs.io/en/stable/tutorial.html#examining-references
I didn't find it that obvious, and had to do some trial and error in the python shell before I got it right.
Here's an actual working example you can try: