def _get_set_name(test_data):
    """Get the set_name from test_data
    Return the value of 'set_name' key if present in the data
    If set_name it is not present in data, return the value of the first key.
    If there's no data, leave set_name as ''
    """
    set_name = ''
    if 'set_name' in test_data:
        set_name = test_data['set_name']
    else:
        data_without_env = dict(test_data)
        data_without_env.pop('env', None)
        if data_without_env:
            set_name = test_data[next(iter(data_without_env))]
    return set_name