class_docstr: Helper class for renaming string contents.
docstr: Rename input string `s` using the rules provided to the constructor.
docstr_tok: ["Rename","input","string","`","s","`","using","the","rules","provided","to","the","constructor","."]
code: def __call__(self, s: str) -> str:
      """Rename input string `s` using the rules provided to the constructor."""
      news = self.subfn(s)
      return self.chain(news) if self.chain else news
  
imports: import contextlib
  import functools
  import inspect
  import itertools
  import re
  from numbers import Number
  from typing import Callable, List, Union, Tuple, Iterable, Dict, Pattern, Optional, Sequence
  import jax
  import jax.numpy
  import numpy
  from objax.constants import ConvPadding, Interpolate
  from objax.typing import ConvPaddingInt
label_desc: Use image node_id 2 for calling the Renamer obj's underlying member method code with example usage: obj.__call__(s) and returns: unknown