Learn the method to programmatically check whether stock is managed for particular product in Magento 2.