class_docstr: Cache the function calls
class_docstr_tok: ["Cache","the","function","calls"]
code: def get(self, key):
      self._lock.acquire()
      timestamp, val = self._content.get(key, (None, None))
      self._lock.release()
  
      if timestamp:
          if (
              timestamp
              >= datetime.datetime.now()
              - self._cache_staleness_threshold
          ):
              return val
      else:
          return None
  
file_path: horovod/horovod/runner/util/cache.py
imports: import datetime
  import errno
  import os
  import threading
  import cloudpickle
label_desc: Use image node_id 2 for calling the Cache obj's underlying member method code with example usage: obj.get(key) and returns: None, val