def static_image(relative_path, alt, **html_attrs):
    """Create an <img> tag for a path relative to the public directory.
       
    If keyword arg ``use_cache`` is false, don't use the global dimensions
    cache.
    """
    use_cache = html_attrs.pop("use_cache", True)
    if "width" not in html_attrs or "height" not in html_attrs:
        try:
            path = Path(config["pylons.paths"]["public_files"], relative_path)
            width, height = get_dimensions(path, use_cache)
        except __HOLE__:
            pass
        else:
            if width:
                html_attrs.setdefault("width", width)
            if height:
                html_attrs.setdefault("height", height)
    # @@MO Temporary kludge due to url_for ambiguity in Routes 1.
    src = "/" + relative_path
    return image(src, alt=alt, **html_attrs)
dataset/ETHPy150Open mikeorr/WebHelpers2/unfinished/multimedia.py/static_image