code: def resize_pinhole_camera(pinhole_cam, tgt_size):
      _h, _w = tgt_size
      scale_h = _h / pinhole_cam.shape[0]
      scale_w = _w / pinhole_cam.shape[1]
      _cx, _cy = pinhole_cam.cx * scale_w, pinhole_cam.cy * scale_h
      _fx, _fy = pinhole_cam.fx * scale_w, pinhole_cam.fy * scale_h
      cropped_pinhole_cam = PinholeCamera(_w, _h, _fx, _fy, _cx, _cy)
      return cropped_pinhole_cam
  
file_path: ml-neuman/cameras/pinhole_camera.py
imports: import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: resize_pinhole_camera(pinhole_cam, tgt_size) and returns: cropped_pinhole_cam