def METHOD_NAME(self, line):
    'Magic that displays content of the dictionary'
    # do not return __builtins__ beacuse it is too long...
    actions = line.strip().split()
    keys = [x for x in actions if not x.startswith('-')]
    for x in keys:
        if not x in env.sos_dict:
            raise RuntimeError(
                'Unrecognized sosdict option or variable name {}'.format(x))
    for x in [x for x in actions if x.startswith('-')]:
        if not x in ['-r', '--reset', '-k', '--keys', '-a', '--all']:
            raise RuntimeError(
                'Unrecognized option {} for magic %sosdict'.format(x))
    if '--reset' in actions or '-r' in actions:
        return self._reset()
    if '--keys' in actions or '-k' in actions:
        if '--all' in actions or '-a' in actions:
            return env.sos_dict._dict.keys()
        elif keys:
            return set(keys)
        else:
            return {
                x for x in env.sos_dict._dict.keys()
                if not x.startswith('__')
            } - self.original_keys
    else:
        if '--all' in actions or '-a' in actions:
            return env.sos_dict._dict
        elif keys:
            return {
                x: y for x, y in env.sos_dict._dict.items() if x in keys
            }
        else:
            return {
                x: y
                for x, y in env.sos_dict._dict.items()
                if x not in self.original_keys and not x.startswith('__')
            }