code: def crop_or_pad_to(height, width):
      """Ensures the specified spatial shape by either padding or cropping.
      Meant to be used as a last transform for architectures insisting on a specific
      spatial shape of their inputs.
      """
  
      def inner(t_image):
          return tf.image.resize_image_with_crop_or_pad(
              t_image, height, width
          )
  
      return inner
  
file_path: lucid/lucid/optvis/transform.py
imports: import tensorflow
  import numpy
  import uuid
  from lucid.optvis import param
label_desc: Use image node_id 10 for calling a global function with example usage: crop_or_pad_to(height, width) and returns: inner, tf