code: def bounding_box(z_where, x_size):
      """This doesn't take into account interpolation, but it's close
      enough to be usable."""
      w = x_size / z_where.s
      h = x_size / z_where.s
      xtrans = -z_where.x / z_where.s * x_size / 2.0
      ytrans = -z_where.y / z_where.s * x_size / 2.0
      x = (x_size - w) / 2 + xtrans  # origin is top left
      y = (x_size - h) / 2 + ytrans
      return (x, y), w, h
  
file_path: pyro/examples/air/viz.py
imports: import math
  from collections import namedtuple
  import numpy
  from PIL import Image, ImageDraw
label_desc: Use image node_id 1 for calling a global function with example usage: bounding_box(z_where, x_size) and returns: x,  y,  w,  h