def get_inherit_image(self) -> Tuple[str, str]:
name, tag = str(self.inherit_image).split("<STR_LIT::>")<EOL>if self.image_exists(name, tag):<EOL><INDENT>return name, tag<EOL><DEDENT>try:<EOL><INDENT>self.client.images.pull(name, tag)<EOL><DEDENT>except docker.errors.APIError:<EOL><INDENT>raise ArcaMisconfigured(f"<STR_LIT>"<EOL>f"<STR_LIT>")<EOL><DEDENT>return name, tag<EOL>
Parses the ``inherit_image`` setting, checks if the image is present locally and pulls it otherwise.

        :return: Returns the name and the tag of the image.
        :raise ArcaMisconfiguration: If the image can't be pulled from registries.