code: def cache(request):
      """
      Return a cache object that can persist state between testing sessions.
  
      cache.get(key, default)
      cache.set(key, value)
  
      Keys must be a ``/`` separated value, where the first part is usually the
      name of your plugin or application to avoid clashes with other cache users.
  
      Values can be any object handled by the json stdlib module.
      """
      return request.config.cache
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import json
  import os
  from collections import OrderedDict
  import attr
  import py
  import six
  import pytest
  from .compat import _PY2
  from .pathlib import Path
  from .pathlib import resolve_from_str
  from .pathlib import rm_rf
label_desc: Use image node_id 4 for calling a global function with example usage: cache(request) and returns: request