class_docstr: Base class for Preprocessing Layers.
  
  **Don't use this class directly: it's an abstract base class!** You may
  be looking for one of the many built-in
  [preprocessing layers](https://keras.io/guides/preprocessing_layers/)
  instead.
  
  Preprocessing layers are layers whose state gets computed before model
  training starts. They do not get updated during training.
  Most preprocessing layers implement an `adapt()` method for state computation.
  
  The `PreprocessingLayer` class is the base class you would subclass to
  implement your own preprocessing layers.
  
  Attributes:
    streaming: Whether a layer can be adapted multiple times without resetting
      the state of the layer.
class_docstr_tok: ["Base","class","for","Preprocessing","Layers",".","*","*","Do","n't","use","this","class","directly",":","it","'s","an","abstract","base","class","!","*","*","You","may","be","looking","for","one","of","the","many","built-in","[","preprocessing","layers","]","(","https",":","\/\/keras.io\/guides\/preprocessing_layers\/",")","instead",".","Preprocessing","layers","are","layers","whose","state","gets","computed","before","model","training","starts",".","They","do","not","get","updated","during","training",".","Most","preprocessing","layers","implement","an","`","adapt","(",")","`","method","for","state","computation",".","The","`","PreprocessingLayer","`","class","is","the","base","class","you","would","subclass","to","implement","your","own","preprocessing","layers",".","Attributes",":","streaming",":","Whether","a","layer","can","be","adapted","multiple","times","without","resetting","the","state","of","the","layer","."]
docstr: Finalize the statistics for the preprocessing layer.
  
  This method is called at the end of `adapt` or after restoring a serialized
  preprocessing layer's state. This method handles any one-time operations
  that should occur on the layer's state before `Layer.__call__`.
docstr_tok: ["Finalize","the","statistics","for","the","preprocessing","layer",".","This","method","is","called","at","the","end","of","`","adapt","`","or","after","restoring","a","serialized","preprocessing","layer","'s","state",".","This","method","handles","any","one-time","operations","that","should","occur","on","the","layer","'s","state","before","`","Layer.__call__","`","."]
code: def finalize_state(self):
      """Finalize the statistics for the preprocessing layer.
  
      This method is called at the end of `adapt` or after restoring a serialized
      preprocessing layer's state. This method handles any one-time operations
      that should occur on the layer's state before `Layer.__call__`.
      """
      pass
  
imports: import abc
  import collections
  import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor
  from tensorflow.python.keras import backend
  from tensorflow.python.keras.engine import data_adapter
  from tensorflow.python.keras.engine.base_layer import Layer
  from tensorflow.python.keras.utils import tf_utils
  from tensorflow.python.keras.utils import version_utils
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.trackable import base
label_desc: Use image node_id 7 for calling the PreprocessingLayer obj's underlying member method code with example usage: obj.finalize_state() without return types