python str.casefold() implementation location
Solution 1:
The casefold dispatcher is implemented there, you can just look up the functions it dispatches to.
https://github.com/python/cpython/blob/f4c03484da59049eb62a9bf7777b963e2267d187/Objects/unicodeobject.c#L10967