code: def filter_valids_dict(d, valid, name="filter_valids_dict"):
      """Filter valid values on a dict.
  
      Args:
          d (dict[tf.Tensor]): Dict of tensors to be filtered.
          valid (list[float]): Array of length of the valid values (elements
          can be either 0 or 1).
          name (string): Name of the operation. None by default.
  
      Returns:
          dict[tf.Tensor]: Dict with filtered tensors.
      """
      with tf.name_scope(name):
          return {k: filter_valids(v, valid) for k, v in d.items()}
  
imports: import collections
  import numpy
  import tensorflow
label_desc: Use image node_id 6 for calling a global function with example usage: filter_valids_dict(d, valid, name) and returns: unknown