class_docstr: Caches training results on local disk (see parent class for full docstring).
class_docstr_tok: ["Caches","training","results","on","local","disk","(","see","parent","class","for","full","docstring",")","."]
docstr: Returns cached output fingerprint (see parent class for full docstring).
docstr_tok: ["Returns","cached","output","fingerprint","(","see","parent","class","for","full","docstring",")","."]
code: def get_cached_output_fingerprint(
      self, fingerprint_key: Text
  ) -> Optional[Text]:
      """Returns cached output fingerprint (see parent class for full docstring)."""
      with self._sessionmaker.begin() as session:
          query = sa.select(self.CacheEntry).filter_by(
              fingerprint_key=fingerprint_key
          )
          match = session.execute(query).scalars().first()
  
          if match:
              # This result was used during a fingerprint run.
              match.last_used = datetime.utcnow()
              return match.output_fingerprint_key
  
          return None
  
imports: from __future__ import annotations
  import abc
  import logging
  import os
  import shutil
  from datetime import datetime
  from pathlib import Path
  from typing import Text, Any, Optional, Tuple, List
  from packaging import version
  from sqlalchemy.engine import URL
  from sqlalchemy.exc import OperationalError
  from typing_extensions import Protocol, runtime_checkable
  import rasa
  import rasa.model
  import rasa.utils.common
  import rasa.shared.utils.common
  from rasa.constants import MINIMUM_COMPATIBLE_VERSION
  import sqlalchemy
  import sqlalchemy.orm
  from sqlalchemy.ext.declarative import declarative_base, DeclarativeMeta
  from rasa.engine.storage.storage import ModelStorage
label_desc: Use image node_id 14 for calling the LocalTrainingCache obj's underlying member method code with example usage: obj.get_cached_output_fingerprint(fingerprint_key) and returns: None, match