{"version":"1.0","type":"rich","title":"Gist 70c868110a00f3ba70900612538f1fce","description":"This example demonstrates a unit-validation function that checks whether a string represents a valid Pint unit. It defines `is_str_valid_pint_unit` to attempt parsing the input with the Pint `UnitRegistry` and returns `False` when an `UndefinedUnitError` occurs. The code prints `True` for the sample unit `'degC'`, showing how the registry recognizes common units. The example uses the Pint library’s `ureg()` call to perform the validation.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-70c868110a00f3ba70900612538f1fce?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}