diplomat.utils.shapes.shape_str¶ diplomat.utils.shapes.shape_str(shape: str) → str[source]¶ Check if a string passes is the name of a required shape (one that must be supported by DotShapeDrawer) Parameters: shape – Shape name to check. Returns: Same shape name. Throws: ValueError passed name for a shape is not valid.