code: def test_globbedpaths_cached(path=None):
      # Smoke test to trigger cache handling.
      gp = GlobbedPaths([op.join("?", ".dat"), "*.txt"], pwd=path)
      for full, partial, misses in product([False, True], repeat=3):
          eq_(
              gp.expand(
                  full=full,
                  include_misses=misses,
                  include_partial=partial,
              ),
              gp.expand(
                  full=full,
                  include_misses=misses,
                  include_partial=partial,
              ),
          )
  
file_path: datalad/datalad/support/tests/test_globbedpaths.py
imports: import logging
  import os.path
  from itertools import product
  from unittest.mock import patch
  from datalad.tests.utils_pytest import OBSCURE_FILENAME, assert_in, eq_, swallow_logs, with_tree
  from ..globbedpaths import GlobbedPaths
label_desc: Use image node_id 5 for calling a global function with example usage: test_globbedpaths_cached(path) without return types