def get_image(name):
    root = os.path.join(settings.PROJECT_ROOT, 'nodes', 'images')
    if name in os.listdir(root):
        return name
    else:
        return 'raw'
Get correct image by name
dataset/ETHPy150Open nvbn/coviolations_web/nodes/utils.py/get_image