def METHOD_NAME(n_clicks, style):
    """
    Dash callback used to trigger a card being expanded/collapsed
    It does this by modifying the visibility in the style of the card body
    """
    if style['visibility'] == 'visible':
        style['visibility'] = 'hidden'
    else:
        style['visibility'] = 'visible'
    return style    