def get_image_with_installed_dependencies(self, image_name: str,<EOL>dependencies: Optional[List[str]]) -> Tuple[str, str]:
python_version = self.get_python_version()<EOL>if dependencies is not None:<EOL><INDENT>def install_dependencies_dockerfile():<EOL><INDENT>python_name, python_tag = self.get_python_base(python_version,<EOL>pull=not self.disable_pull)<EOL>return self.INSTALL_DEPENDENCIES.format(<EOL>name=python_name,<EOL>tag=python_tag,<EOL>dependencies="<STR_LIT:U+0020>".join(self.get_dependencies())<EOL>)<EOL><DEDENT>image_tag = self.get_image_tag(RequirementsOptions.no_requirements, None, dependencies)<EOL>self.get_or_build_image(image_name, image_tag, install_dependencies_dockerfile,<EOL>pull=not self.disable_pull)<EOL>return image_name, image_tag<EOL><DEDENT>else:<EOL><INDENT>return self.get_python_base(python_version, pull=not self.disable_pull)<EOL><DEDENT>
Return name and tag of a image, based on the Arca python image, with installed dependencies defined
by ``apt_dependencies``.

:param image_name: Name of the image which will be ultimately used for the image.
:param dependencies: List of dependencies in the standardized format.