docstr: Try to match a single dict with the supplied arguments.
  
  Keys whose values are strings and which are in self._partial_matches
  will be checked for partial (i.e. substring) matches. You can extend
  this scheme to (for example) do regular expression matching, etc.
docstr_tok: ["Try","to","match","a","single","dict","with","the","supplied","arguments",".","Keys","whose","values","are","strings","and","which","are","in","self._partial_matches","will","be","checked","for","partial","(","i.e",".","substring",")","matches",".","You","can","extend","this","scheme","to","(","for","example",")","do","regular","expression","matching",",","etc","."]
code: def matches(self, d, **kwargs):
      """
      Try to match a single dict with the supplied arguments.
  
      Keys whose values are strings and which are in self._partial_matches
      will be checked for partial (i.e. substring) matches. You can extend
      this scheme to (for example) do regular expression matching, etc.
      """
      result = True
      for k in kwargs:
          v = kwargs[k]
          dv = d.get(k)
          if not self.match_value(k, dv, v):
              result = False
              break
      return result
  
imports: import contextlib
  import shutil
  import tempfile
  import warnings
  from logging.handlers import BufferingHandler
  import numpy
  import numpy.random
  import pytensor
  from numpy.testing import assert_array_less
  from pytensor.gradient import verify_grad
  import pymc
  from pymc.testing import fast_unstable_sampling_mode
  from tests.models import mv_simple, mv_simple_coarse
label_desc: Use image node_id 1 for calling the Matcher obj's underlying member method code with example usage: obj.matches(d) and returns: result