magento 2 product load by id code example
Example 1: magento 2 get loaded product by id
$om = \Magento\Framework\App\ObjectManager::getInstance();
$product = $om->create('Magento\Catalog\Model\Product')->load($id);
Example 2: magento load product by id
$productId = 20;
$product = Mage::getModel('catalog/product')->load($productId);