class_docstr: Base decoder object.
  
  `tfds.decode.Decoder` allows for overriding the default decoding by
  implementing a subclass, or skipping it entirely with
  `tfds.decode.SkipDecoding`.
  
  Instead of subclassing, you can also create a `Decoder` from a function
  with the `tfds.decode.make_decoder` decorator.
  
  All decoders must derive from this base class. The implementation can
  access the `self.feature` property which will correspond to the
  `FeatureConnector` to which this decoder is applied.
  
  To implement a decoder, the main method to override is `decode_example`,
  which takes the serialized feature as input and returns the decoded feature.
  
  If `decode_example` changes the output dtype, you must also override
  the `dtype` property. This enables compatibility with
  `tfds.features.Sequence`.
docstr: Decode the example feature field for NumPy (eg: image).
  
  Args:
    serialized_example: `np.array` as decoded, the dtype/shape should be
      identical to `feature.get_serialized_info()`.
  
  Returns:
    example: Decoded example. Defaults to `decode_example`.
docstr_tok: ["Decode","the","example","feature","field","for","NumPy","(","eg",":","image",")",".","Args",":","serialized_example",":","`","np.array","`","as","decoded",",","the","dtype\/shape","should","be","identical","to","`","feature.get_serialized_info","(",")","`",".","Returns",":","example",":","Decoded","example",".","Defaults","to","`","decode_example","`","."]
code: def decode_example_np(self, serialized_example):
      """Decode the example feature field for NumPy (eg: image).
  
      Args:
        serialized_example: `np.array` as decoded, the dtype/shape should be
          identical to `feature.get_serialized_info()`.
  
      Returns:
        example: Decoded example. Defaults to `decode_example`.
      """
      return self.decode_example(serialized_example)
  
imports: import abc
  import functools
  from tensorflow_datasets.core.utils import tree_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 6 for calling the Decoder obj's underlying member method code with example usage: obj.decode_example_np(serialized_example) and returns: self