docstr: Returns the document's named entity annotations stored
  in its metadata, if any.
  
  :param document:
      Document whose annotations are to be fetched.
  :returns:
      The stored annotations.
docstr_tok: ["Returns","the","document","'s","named","entity","annotations","stored","in","its","metadata",",","if","any",".",":","param","document",":","Document","whose","annotations","are","to","be","fetched",".",":","returns",":","The","stored","annotations","."]
code: def get_stored_annotations(
      cls, document: Document
  ) -> Optional[List[NamedEntityAnnotation]]:
      """
      Returns the document's named entity annotations stored
      in its metadata, if any.
  
      :param document:
          Document whose annotations are to be fetched.
      :returns:
          The stored annotations.
      """
  
      return document.meta.get(cls._METADATA_KEY)
  
imports: from abc import ABC, abstractmethod
  from contextlib import contextmanager
  from dataclasses import dataclass
  from enum import Enum, EnumMeta
  from typing import Any, Dict, List, Optional, Union
  from ...None import ComponentError, DeserializationError, Document, component, default_from_dict, default_to_dict
  from ...lazy_imports import LazyImport
label_desc: Use image node_id 7 for calling the NamedEntityExtractor obj's underlying member method code with example usage: obj.get_stored_annotations(cls, document) and returns: document