Added API function for getting related media by node ID.