class_docstr: Base class from which all rewriters should inherit.
class_docstr_tok: ["Base","class","from","which","all","rewriters","should","inherit","."]
docstr: Perform pre-rewrite validation to check the model has expected structure.
  
  Args:
    original_model: A `ModelDescription` object describing the original model.
  
  Raises:
    ValueError: If the original model does not have the expected structure.
docstr_tok: ["Perform","pre-rewrite","validation","to","check","the","model","has","expected","structure",".","Args",":","original_model",":","A","`","ModelDescription","`","object","describing","the","original","model",".","Raises",":","ValueError",":","If","the","original","model","does","not","have","the","expected","structure","."]
code: def _pre_rewrite_validate(self, original_model: ModelDescription):
      """Perform pre-rewrite validation to check the model has expected structure.
  
      Args:
        original_model: A `ModelDescription` object describing the original model.
  
      Raises:
        ValueError: If the original model does not have the expected structure.
      """
      pass
  
file_path: tfx/tfx/components/trainer/rewriting/rewriter.py
imports: import abc
  import collections
  import enum
label_desc: Use image node_id 2 for calling the BaseRewriter obj's underlying member method code with example usage: obj._pre_rewrite_validate(original_model) without return types