def try_pull_image_from_registry(self, image_name, image_tag):
try:<EOL><INDENT>image = self.client.images.pull(self.use_registry_name, image_tag)<EOL><DEDENT>except (docker.errors.ImageNotFound, docker.errors.NotFound):  <EOL><INDENT>logger.info("<STR_LIT>", self.use_registry_name, image_tag)<EOL>return None<EOL><DEDENT>logger.info("<STR_LIT>", self.use_registry_name, image_tag,<EOL>image_name, image_tag)<EOL>image.tag(image_name, image_tag)<EOL>return image<EOL>
Tries to pull a image with the tag ``image_tag`` from registry set by ``use_registry_name``.
After the image is pulled, it's tagged with ``image_name``:``image_tag`` so lookup can
be made locally next time.

:return: A :class:`Image <docker.models.images.Image>` instance if the image exists, ``None`` otherwise.
:rtype: Optional[docker.models.images.Image]