class_docstr: Handle SDK session cache.
  TODO: Improve error handling to something like "except (FileNotFoundError, PermissionError, JSONDecodeError)"
  TODO: that's both six-compatible and tested
code: def _store_cache(cls, cache):
      # noinspection PyBroadException
      try:
          Path(expanduser(cls.SESSION_CACHE_FOLDER)).mkdir(
              parents=True, exist_ok=True
          )
          flag = "wb" if six.PY2 else "wt"
          with (
              Path(expanduser(cls.SESSION_CACHE_FOLDER))
              / SESSION_CACHE_FILE
          ).open(flag) as fp:
              json.dump(cache, fp)
      except Exception:
          pass
  
file_path: clearml/clearml/config/cache.py
imports: import json
  from os.path import expanduser
  import six
  from pathlib2 import Path
  from .None import running_remotely
  from .defs import SESSION_CACHE_FILE
label_desc: Use image node_id 2 for calling the SessionCache obj's underlying member method code with example usage: obj._store_cache(cls, cache) without return types