How To Resize a Node Using Python script
According to the API, there is Node.height as well as Node.width. Assign whatever float you like:


  Type:  float in [-inf, inf], default 0.0


API link: https://docs.blender.org/api/current/bpy.types.Node.html