code: def match_entries(entries, pattern):
      
      matching = []
  
      for variant in expand_braces(pattern):
          matching.extend(fnmatch.filter(entries, variant))
  
      return list(_deduplicate(matching))
docs: A drop-in replacement for fnmatch.filter that supports pattern
      variants (ie. {foo,bar}baz = foobaz or barbaz).