def get_python_base(self, python_version, pull=True):
name = self.get_arca_base_name()<EOL>tag = self.get_python_base_tag(python_version)<EOL>def get_dockerfile():<EOL><INDENT>base_arca_name, base_arca_tag = self.get_arca_base(pull)<EOL>return f"""<STR_LIT>"""<EOL><DEDENT>self.get_or_build_image(name, tag, get_dockerfile, pull=pull)<EOL>return name, tag<EOL>
Returns the name and tag of an image with specified ``python_version`` installed,
if the image doesn't exist locally, it's pulled or built (extending the image from :meth:`get_arca_base`).