#!/bin/env python3 import os import ast import argparse import io import sys import re import yaml from pathlib import Path import graphviz def replace_image_tag(text, test_dir): """ Convert images added in the description and replace with the required ifdefs to work generating the test specifcation as well. """ pattern = r"image::(?P\S+)\[(?P