code: def pytest_report_header(config):
      """Display cachedir with --cache-show and if non-default."""
      if (
          config.option.verbose > 0
          or config.getini("cache_dir") != ".pytest_cache"
      ):
          cachedir = config.cache._cachedir
          # TODO: evaluate generating upward relative paths
          # starting with .., ../.. if sensible
  
          try:
              displaypath = cachedir.relative_to(config.rootdir)
          except ValueError:
              displaypath = cachedir
          return "cachedir: {}".format(displaypath)
  
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 5 for calling a global function with example usage: pytest_report_header(config) and returns: str