code: def tinyify(array, tiny_mode, small_mode):
      if tiny_mode:
          return [1 for _ in array]
      if small_mode:
          return [max(x // 4, 1) for x in array]
      return array
  
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 18 for calling a global function with example usage: tinyify(array, tiny_mode, small_mode) and returns: array, unknown, unknown