code: def three_spatial_crops(images, crop_size):
      """Returns three spatial crops of the same frame, as done by SlowFast.
  
      This enables testing using the same protocol as prior works. ie
      (https://arxiv.org/abs/1812.03982, https://arxiv.org/abs/1904.02811,
       https://arxiv.org/abs/2004.04730)
      If width > height, takes left, centre and right crop.
      If height > width, takes top, middle and bottom crop.
  
      Args:
        images: `Tensor` of shape [t, h, w, c]
        crop_size: The size to crop from the images
  
      Returns:
        `Tensor` of shape [3 * t, h, w, c]
      """
  
      result = []
      for spatial_index in range(3):
          images_cropped = deterministic_crop(
              images, crop_size, spatial_index
          )
          result.append(images_cropped)
  
      return tf.concat(result, axis=0)
  
imports: import functools
  import math
  from typing import Optional
  from absl import logging
  from dmvr import builders
  from dmvr import processors
  import simclr.tf2.data_util
  import tensorflow
  from official.vision.image_classification import augment
label_desc: Use image node_id 11 for calling a global function with example usage: three_spatial_crops(images, crop_size) and returns: tf