class_docstr: Factory class for rewriters.
code: def get_rewriter_cls(cls, rewriter_type: str):
      rewriter_type = rewriter_type.lower()
      cls._maybe_load_public_rewriter(rewriter_type)
      for subcls in rewriter.BaseRewriter.__subclasses__():
          if subcls.__name__.lower() == rewriter_type:
              return subcls
      raise ValueError(
          "Failed to find rewriter: {}".format(rewriter_type)
      )
  
file_path: tfx/tfx/components/trainer/rewriting/rewriter_factory.py
imports: import importlib
  from tfx.components.trainer.rewriting import rewriter
label_desc: Use image node_id 2 for calling the _RewriterFactory obj's underlying member method code with example usage: obj.get_rewriter_cls(cls, rewriter_type) and returns: subcls