def METHOD_NAME(key, dictionary):
    if not isinstance(dictionary, dict):
        return []
    values = list()
    if key in dictionary:
        values.append(dictionary[key])
    for k, v in dictionary.items():
        if k == key:
            values.append(v)
        if isinstance(v, list):
            for i in v:
                for j in METHOD_NAME(key, i):
                    values.append(j)
        elif isinstance(v, dict):
            for result in METHOD_NAME(key, v):
                values.append(result)
    return values