def METHOD_NAME(attr_dict, prereqs):
    """Similar to get_pkg_attrs in tern/analyze/default/collect.py but with
    invocation on a live container image"""
    error_msgs = ""
    result = ""
    if 'invoke' in attr_dict.keys():
        for step in range(1, len(attr_dict['invoke'].keys()) + 1):
            method, snippet_list = get_snippet_list(
                attr_dict['invoke'][step], prereqs)
            # invoke inventory script against the mount directory
            result, error = lcol.invoke_live(snippet_list, prereqs, method)
            if error:
                logger.warning(
                    "Error invoking command: %s", error.decode('utf-8'))
                error_msgs = error_msgs + error.decode('utf-8')
    if 'delimiter' in attr_dict.keys():
        res_list = result.decode('utf-8').split(attr_dict['delimiter'])
        if res_list[-1] == '' or res_list[-1] == '\n':
            res_list.pop()
            return res_list, error_msgs
        return res_list, error_msgs
    return result, error_msgs