code: def rgb_filter_function(image):
      """Filter function that only lets RGB images go through.
  
      Args:
        image: Tensor, the image tensor to be checked.
      Returns: bool, whether to keep the image or not.
      """
      shape = tf.shape(image)[2]
      return tf.math.equal(shape, 3)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tempfile
  from magenta.models.arbitrary_image_stylization import arbitrary_image_stylization_build_mobilenet_model
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling a global function with example usage: rgb_filter_function(image) and returns: tf