class_docstr: InputCreator with feature specs.
  
  Example usage:
  
  ```python
  input_creator=FeatureSpecInputCreator(
      {},
      {"example_feature_1": tf.io.FixedLenFeature(
          shape=(1,), dtype=tf.float32, default_value=0.0)})
  ```
docstr: Initializes the instance.
  
  Args:
    context_feature_spec: A dict maps the context feature keys to the
      corresponding context feature specs.
    example_feature_spec: A dict maps the example feature keys to the
      corresponding example feature specs.
docstr_tok: ["Initializes","the","instance",".","Args",":","context_feature_spec",":","A","dict","maps","the","context","feature","keys","to","the","corresponding","context","feature","specs",".","example_feature_spec",":","A","dict","maps","the","example","feature","keys","to","the","corresponding","example","feature","specs","."]
code: def __init__(
      self,
      context_feature_spec: Dict[
          str,
          Union[
              tf.io.FixedLenFeature,
              tf.io.VarLenFeature,
              tf.io.RaggedFeature,
          ],
      ],
      example_feature_spec: Dict[
          str,
          Union[
              tf.io.FixedLenFeature,
              tf.io.VarLenFeature,
              tf.io.RaggedFeature,
          ],
      ],
  ):
      """Initializes the instance.
  
      Args:
        context_feature_spec: A dict maps the context feature keys to the
          corresponding context feature specs.
        example_feature_spec: A dict maps the example feature keys to the
          corresponding example feature specs.
      """
      self._context_feature_spec = context_feature_spec
      self._example_feature_spec = example_feature_spec
  
imports: import abc
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  from absl import logging
  import tensorflow
  from tensorflow_ranking.python.keras import feature
  from tensorflow_ranking.python.keras import layers
label_desc: Use image node_id 1 to create a new FeatureSpecInputCreator object from inherited base classes: InputCreator with example: obj = FeatureSpecInputCreator(context_feature_spec, example_feature_spec)