code: def _dict_slice_remove(a, b, cols=["model_index", "param_set"]):
      """
      Remove dictionary records from list 'a'
      if the records appear in 'b'
      for the given columns 'cols'.
      """
      b_ = [{k: d[k] for k in cols} for d in b]
      a_ = []
      for d in a:
          if {k: d[k] for k in cols} not in b_:
              a_.append(d)
      return a_
  
file_path: sk-dist/skdist/distribute/utils.py
imports: import numbers
  import numpy
  from sklearn.metrics import check_scoring
  from .validation import _safe_indexing
label_desc: Use image node_id 7 for calling a global function with example usage: _dict_slice_remove(a, b, cols) and returns: a_