I am saving the product programmatically using action class in magento 2 [[Reference link]](https://magento.stackexchange.com/questions/3965/programmatically-update-image-labels/62501#62501).After saving the product i am saving the images.But while saving the labels of the images i am getting the following error...

```
Fatal error: Call to undefined method Magento\Eav\Model\Entity\Attribute\Backend\DefaultBackend\Interceptor::updateImage()

```

I have used the following code for saving the image label after product save...

```
$_product = $this->objectManager->get('Magento\Catalog\Model\Product')->load($_product->getId()); //$_product->getId() is 5 which is id of product saved 
            $attributes = $_product->getTypeInstance(true)->getSetAttributes($_product);
            $gallery = $attributes['media_gallery'];
            //$gallery = $_product->getData('media_gallery');
            $images = $_product->getMediaGalleryImages();
            foreach ($images as $image) {
                $backend = $gallery->getBackend();
                $backend->updateImage($_product,$image->getFile(),array('label' => 'Blah'));
            }

```

Referred above code from this [link](https://magento.stackexchange.com/questions/3965/programmatically-update-image-labels/62501#62501) and made changes...

Please suggest how to use updateImage function in magento 2 and save labels for images after saving the product...