def METHOD_NAME(frame, geometry):
	"""Attach geometry to provided frame. This function adds an
	intermediate offset frame between the geometry and the provided frame
	to permit editing its properties to move the geometry around.
	This function returns the intermediate offset frame so that you can
	modify its location and orientation.
	"""
	offset = modeling.PhysicalOffsetFrame()
	offset.setName(frame.getName() + '_offset')
	offset.set_translation(modeling.Vec3(0.))
	offset.set_orientation(modeling.Vec3(0.))
	frame.addComponent(offset);
	bf = modeling.PhysicalFrame.safeDownCast(frame)
	offset.connectSocket_parent(bf)
	offset.attachGeometry(geometry)
	return offset