String node processor that uses a callable function to replace sensitive data.
CallableNodeProcessor(
self,
func: Union[Callable[[str], str], Callable[[str, list[Union[str, int]]], str]]
)The callable function used to replace sensitive data.
It can be either a function that takes a single string argument and returns a string, or a function that takes a string and a list of path elements (strings or integers) and returns a string.
Indicates whether the callable function accepts a path argument.
If True, the function expects two arguments: the string to be processed and the path to that string. If False, the function expects only the string to be processed.