load
load(
path: str | pathlib._local.Path[str, Path] ,
)-> ‘Task’
Return the task a file holds; see save.
The task is named by its registered tag, so reading a file never imports whatever it happens to name – which also means the class has to be defined at module level and already imported.