code: def match(pattern, path):
      # type: (str, str) -> bool
      
      try:
          levels, recursive, re_pattern = _PATTERN_CACHE[(pattern, True)]
      except KeyError:
          levels, recursive, re_pattern = _translate_glob(pattern, case_sensitive=True)
          _PATTERN_CACHE[(pattern, True)] = (levels, recursive, re_pattern)
      return bool(re_pattern.match(path))
docs: Compare a glob pattern with a path (case sensitive).
  
      Arguments:
          pattern (str): A glob pattern.
          path (str): A path.
  
      Returns:
          bool: ``True`` if the path matches the pattern.
  
      Example:
  
          >>> from fs.glob import match
          >>> match("**/*.py", "/fs/glob.py")
          True