class_docstr: The :class:`PathSpec` class is a wrapper around a list of compiled
  :class:`.Pattern` instances.
docstr: Matches the entries to this path-spec.
  
  *entries* (:class:`~collections.abc.Iterable` of :class:`~util.TreeEntry`)
  contains the entries to be matched against :attr:`self.patterns <PathSpec.patterns>`.
  
  *separators* (:class:`~collections.abc.Collection` of :class:`str`;
  or :data:`None`) optionally contains the path separators to
  normalize. See :func:`~pathspec.util.normalize_file` for more
  information.
  
  Returns the matched entries (:class:`~collections.abc.Iterable` of
  :class:`~util.TreeEntry`).
docstr_tok: ["Matches","the","entries","to","this","path-spec",".","*","entries","*","(",":","class",":","`","~collections.abc.Iterable","`","of",":","class",":","`","~util.TreeEntry","`",")","contains","the","entries","to","be","matched","against",":","attr",":","`","self.patterns","<","PathSpec.patterns",">","`",".","*","separators","*","(",":","class",":","`","~collections.abc.Collection","`","of",":","class",":","`","str","`",";","or",":","data",":","`","None","`",")","optionally","contains","the","path","separators","to","normalize",".","See",":","func",":","`","~pathspec.util.normalize_file","`","for","more","information",".","Returns","the","matched","entries","(",":","class",":","`","~collections.abc.Iterable","`","of",":","class",":","`","~util.TreeEntry","`",")","."]
code: def match_entries(self, entries, separators=None):
      """
      Matches the entries to this path-spec.
  
      *entries* (:class:`~collections.abc.Iterable` of :class:`~util.TreeEntry`)
      contains the entries to be matched against :attr:`self.patterns <PathSpec.patterns>`.
  
      *separators* (:class:`~collections.abc.Collection` of :class:`str`;
      or :data:`None`) optionally contains the path separators to
      normalize. See :func:`~pathspec.util.normalize_file` for more
      information.
  
      Returns the matched entries (:class:`~collections.abc.Iterable` of
      :class:`~util.TreeEntry`).
      """
      if not util._is_iterable(entries):
          raise TypeError(
              "entries:{!r} is not an iterable.".format(entries)
          )
  
      entry_map = util._normalize_entries(
          entries, separators=separators
      )
      match_paths = util.match_files(self.patterns, iterkeys(entry_map))
      for path in match_paths:
          yield entry_map[path]
  
file_path: ray/python/ray/_private/thirdparty/pathspec/pathspec.py
imports: from .None import util
  from .compat import Collection, iterkeys, izip_longest, string_types, unicode
label_desc: Use image node_id 8 for calling the PathSpec obj's underlying member method code with example usage: obj.match_entries(entries, separators) without return types