code: def _make_combined_filter_fn(filter_fns, mode="and"):
      """Returns a new predicate function that combines multiple
      predicate functions with certain mode.
  
      Returns `None` if all elements in :attr:`filter_fns` are `None`.
  
      Args:
          filter_fns (list): Filter functions to combine. `None` functions are
              ignored.
          mode (str): A mode from `{"and", "or"}`.
      """
      if not any(filter_fns):
          return None
  
      def _combined_fn(data):
          outputs = []
          for fn in filter_fns:
              if fn:
                  outputs.append(fn(data))
          if mode == "and":
              return tf.reduce_all(outputs)
          elif mode == "or":
              return tf.reduce_any(outputs)
          else:
              raise ValueError("Unknown mode: {}".format(mode))
  
      return _combined_fn
  
imports: import six
  import tensorflow
  import numpy
  from texar.tf.utils import utils
label_desc: Use image node_id 3 for calling a global function with example usage: _make_combined_filter_fn(filter_fns, mode) and returns: _combined_fn, None, tf, tf