def METHOD_NAME(self, fn, *args, **kwargs):
    # type: (ParDo, Any, *Any, **Any) -> Any
    # Do not monkey patch init twice
    if not getattr(self, "_sentry_is_patched", False):
        for func_name in function_patches:
            if not hasattr(fn, func_name):
                continue
            wrapped_func = WRAPPED_FUNC.format(func_name)
            # Check to see if inspect is set and process is not
            # to avoid monkey patching process twice.
            # Check to see if function is part of object for
            # backwards compatibility.
            process_func = getattr(fn, func_name)
            inspect_func = getattr(fn, INSPECT_FUNC.format(func_name))
            if not getattr(inspect_func, USED_FUNC, False) and not getattr(
                process_func, USED_FUNC, False
            ):
                setattr(fn, wrapped_func, process_func)
                setattr(fn, func_name, _wrap_task_call(process_func))
        self._sentry_is_patched = True
    old_init(self, fn, *args, **kwargs)