<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def baremetal_models(call=None):
    '''
    Return a dict of all available baremetal models with relevant data.
    '''
    if call == 'action':
        raise SaltCloudSystemExit(
            'The baremetal_models function must be called with '
            '-f or --function'
        )

    conn = get_conn()

    bmodels = conn.list_baremetal_models()

    return bmodels