def build_image_from_inherited_image(self, image_name: str, image_tag: str,<EOL>repo_path: Path,<EOL>requirements_option: RequirementsOptions):
base_name, base_tag = self.get_inherit_image()<EOL>if requirements_option == RequirementsOptions.no_requirements:<EOL><INDENT>image = self.get_image(base_name, base_tag)<EOL>image.tag(image_name, image_tag)  <EOL>return image<EOL><DEDENT>dockerfile = self.get_install_requirements_dockerfile(base_name, base_tag, repo_path, requirements_option)<EOL>self.get_or_build_image(image_name, image_tag, dockerfile, build_context=repo_path.parent, pull=False)<EOL>return self.get_image(image_name, image_tag)<EOL>
Builds a image with installed requirements from the inherited image. (Or just tags the image
if there are no requirements.)

See :meth:`build_image` for parameters descriptions.

:rtype: docker.models.images.Image