code: def valid_bounding_boxes_mask(
      boxes, height, width, tolerance_pixels=1.0
  ):
      boxes_height = (boxes[:, 2] - boxes[:, 0]) * height
      boxes_width = (boxes[:, 3] - boxes[:, 1]) * width
      invalid_boxes = tf.math.logical_or(
          tf.math.less_equal(boxes_height, tolerance_pixels),
          tf.math.less_equal(boxes_width, tolerance_pixels),
      )
      valid_boxes_mask = tf.cast(
          tf.math.logical_not(invalid_boxes), tf.float32
      )
      return valid_boxes_mask
  
file_path: graphics/tensorflow_graphics/projects/points_to_3Dobjects/transforms/targets.py
imports: import tensorflow
  from google3.third_party.tensorflow_models.object_detection.core import box_list
  from google3.third_party.tensorflow_models.object_detection.core import box_list_ops
label_desc: Use image node_id 3 for calling a global function with example usage: valid_bounding_boxes_mask(boxes, height, width, tolerance_pixels) and returns: valid_boxes_mask