class_docstr: Base class from which all rewriters should inherit.
class_docstr_tok: ["Base","class","from","which","all","rewriters","should","inherit","."]
docstr: Perform the rewrite.
  
  Args:
    original_model: A `ModelDescription` object describing the original model.
    rewritten_model: A `ModelDescription` object describing the location and
      type of the rewritten output.
  
  Raises:
    ValueError: If the original model was not successfully rewritten.
docstr_tok: ["Perform","the","rewrite",".","Args",":","original_model",":","A","`","ModelDescription","`","object","describing","the","original","model",".","rewritten_model",":","A","`","ModelDescription","`","object","describing","the","location","and","type","of","the","rewritten","output",".","Raises",":","ValueError",":","If","the","original","model","was","not","successfully","rewritten","."]
code: def _rewrite(
      self,
      original_model: ModelDescription,
      rewritten_model: ModelDescription,
  ):
      """Perform the rewrite.
  
      Args:
        original_model: A `ModelDescription` object describing the original model.
        rewritten_model: A `ModelDescription` object describing the location and
          type of the rewritten output.
  
      Raises:
        ValueError: If the original model was not successfully rewritten.
      """
      pass
  
file_path: tfx/tfx/components/trainer/rewriting/rewriter.py
imports: import abc
  import collections
  import enum
label_desc: Use image node_id 3 for calling the BaseRewriter obj's underlying member method code with example usage: obj._rewrite(original_model, rewritten_model) without return types