def METHOD_NAME(self, *args, **kwargs):
    Cython.Utils.clear_function_caches()
    Cython.Build.Dependencies._dep_tree = None  # discard method caches
    Cython.Build.Dependencies.cythonize(*args, **kwargs)