':return: A set with the syscalls that the shell implements'

def get_shell_syscalls(self, _filter=(lambda x: x)):

    available_syscalls = []
    for syscall in SYSCALL_LIST:
        try:
            getattr(self.shell, syscall)
        except AttributeError:
            pass
        else:
            available_syscalls.append(syscall)
    available_syscalls = [_filter(syscall) for syscall in available_syscalls if (_filter(syscall) is not None)]
    return set(available_syscalls)
