<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_image_with_installed_dependencies(self, image_name: str, dependencies: Optional[List[str]]) -> Tuple[str, str]: """ 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. """

        python_version = self.get_python_version()

        if dependencies is not None:
            def install_dependencies_dockerfile():
                python_name, python_tag = self.get_python_base(python_version,
                                                               pull=not self.disable_pull)

                return self.INSTALL_DEPENDENCIES.format(
                    name=python_name,
                    tag=python_tag,
                    dependencies=" ".join(self.get_dependencies())
                )

            image_tag = self.get_image_tag(RequirementsOptions.no_requirements, None, dependencies)
            self.get_or_build_image(image_name, image_tag, install_dependencies_dockerfile,
                                    pull=not self.disable_pull)

            return image_name, image_tag
        else:
            return self.get_python_base(python_version, pull=not self.disable_pull)