code: def ffmpeg_works():
      """Tries to encode images with ffmpeg to check if it works."""
      images = np.zeros((2, 32, 32, 3), dtype=np.uint8)
      try:
          _encode_gif(images, 2)
          return True
      except (IOError, OSError):
          return False
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensor2tensor.layers import common_layers
  from tensor2tensor.utils import contrib
  import tensorflow.compat.v1
  from tensorflow.python.ops import summary_op_util
label_desc: Use image node_id 15 for calling a global function with example usage: ffmpeg_works() and returns: True, False