def METHOD_NAME(self, tag_mappings):
    """
    Generate stubs for tag mappings
    """
    for tag_mapping in tag_mappings:
        if not tag_mapping.needs_generation:
            continue
        input_tag_details = tag_mapping.input_tag_details
        output_tag_details = tag_mapping.output_tag_details
        logging.info(
            f"output tag.full_stub_tag:[{output_tag_details.full_stub_tag}]")
        logging.info(
            f"input tag.full_stub_tag:[{input_tag_details.full_stub_tag}]")
        if tag_mapping.input_tag_details.account == Consts.BITNAMI:
            # create image with RapidFort banner
            self._add_rf_banner(tag_mapping.input_tag_details)
        else:
            # pull docker image
            self.docker_client.images.pull(
                repository=input_tag_details.full_repo_path,
                tag=input_tag_details.tag
            )
        self._run_stub_command(input_tag_details.full_tag)
        # tag input stubbed image to output stubbed image
        stub_image = self.docker_client.images.get(
            input_tag_details.full_stub_tag)
        result = stub_image.tag(output_tag_details.full_stub_tag)
        logging.info(
            f"image tag:[{output_tag_details.full_stub_tag}] success={result}")
        # push stubbed image to output repo
        result = self.docker_client.api.push(
            output_tag_details.full_repo_path,
            output_tag_details.stub_tag)
        logging.info(f"docker client push result: {result}")
        # Remove original input image to clean up space
        logging.info(f"Removing original input image: [{input_tag_details.full_tag}]")
        self.docker_client.images.remove(input_tag_details.full_stub_tag)