class_docstr: GridMask class for grid masking augmentation.
class_docstr_tok: ["GridMask","class","for","grid","masking","augmentation","."]
docstr: crops in middle of mask and image corners.
docstr_tok: ["crops","in","middle","of","mask","and","image","corners","."]
code: def crop(mask, h, w):
      """crops in middle of mask and image corners."""
      ww = hh = tf.shape(mask)[0]
      mask = mask[
          (hh - h) // 2 : (hh - h) // 2 + h,
          (ww - w) // 2 : (ww - w) // 2 + w,
      ]
      return mask
  
file_path: DALI/docs/examples/use_cases/tensorflow/efficientdet/pipeline/tf/gridmask.py
imports: import math
  import tensorflow
  from tensorflow_addons import image
label_desc: Use image node_id 3 for calling the GridMask obj's underlying member method code with example usage: obj.crop(mask, h, w) and returns: mask