code: def test_globbedpaths_partial_matches(path=None):
      gp = GlobbedPaths([op.join("?dir", "*.txt"), "*.txt"], pwd=path)
      eq_(gp.expand_strict(), ["1.txt", "3.txt"])
  
      expected_partial = ["adir" + op.sep, "bdir" + op.sep]
      eq_(gp.partial_hits, expected_partial)
      eq_(
          gp.expand(include_partial=True),
          expected_partial + ["1.txt", "3.txt"],
      )
  
      # Property expands if needed.
      gp = GlobbedPaths([op.join("?dir", "*.txt")], pwd=path)
      eq_(gp.partial_hits, expected_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 4 for calling a global function with example usage: test_globbedpaths_partial_matches(path) without return types