code: def get_pickled_ontology(filename):
      
      pickledfile = os.path.join(ONTOSPY_LOCAL_CACHE, filename + ".pickle")
      # pickledfile = ONTOSPY_LOCAL_CACHE + "/" + filename + ".pickle"
      if GLOBAL_DISABLE_CACHE:
          printDebug(
              "WARNING: DEMO MODE cache has been disabled in __init__.py ==============",
              "red")
      if os.path.isfile(pickledfile) and not GLOBAL_DISABLE_CACHE:
          try:
              return cPickle.load(open(pickledfile, "rb"))
          except:
              print(Style.DIM +
                    "** WARNING: Cache is out of date ** ...recreating it... " +
                    Style.RESET_ALL)
              return None
      else:
          return None
docs: try to retrieve a cached ontology