def is_checked_out(context):
    try:
        return context['object'].is_checked_out()
    except __HOLE__:
        # Might not have permissions
        return False
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/checkouts/links.py/is_checked_out