Create a task function for hydra. Config (cfg) will be passed in via hydra.
method (Callable) – _description_
_description_
Callable