In this example there is used <div> instead of <figure>

Diagram showing network connections.
In this example there is used <div> instead of <figure>
Diagram showing network connections.
Note: Hard to automatically test or detect. Requires a human tester or AI to determine (e.g. from surrounding context) if a figure element is necessary, and then verify if one exists in association with an image element.