def get_import_local(imports, encoding=None):
    local = get_locally_installed_packages()
    result = []
    for item in imports:
        if (item.lower() in local):
            result.append(local[item.lower()])
    result_unique = [dict(t) for t in set([tuple(d.items()) for d in result])]
    return result_unique
def get_import_local(imports, encoding=None):
    local = get_locally_installed_packages()
    result = []
    for item in imports:
        if (item.lower() in local):
            result.append(local[item.lower()])
    result_unique = [dict(t) for t in set([tuple(d.items()) for d in result])]
    return result_unique