class_docstr: Utility that supports re-dimensioning any HoloViews object via the
  redim method.
class_docstr_tok: ["Utility","that","supports","re-dimensioning","any","HoloViews","object","via","the","redim","method","."]
docstr: Returns a filtered version of the DynamicMap cache leaving only
  keys consistently with the newly specified values
docstr_tok: ["Returns","a","filtered","version","of","the","DynamicMap","cache","leaving","only","keys","consistently","with","the","newly","specified","values"]
code: def _filter_cache(self, dmap, kdims):
      """
      Returns a filtered version of the DynamicMap cache leaving only
      keys consistently with the newly specified values
      """
      filtered = []
      for key, value in dmap.data.items():
          if not any(
              kd.values and v not in kd.values
              for kd, v in zip(kdims, key)
          ):
              filtered.append((key, value))
      return filtered
  
imports: import copy
  import sys
  from functools import wraps
  from types import FunctionType
  import param
  from .None import util
  from .pprint import PrettyPrinter
label_desc: Use image node_id 4 for calling the Redim obj's underlying member method code with example usage: obj._filter_cache(dmap, kdims) and returns: filtered