Then you should probably be using Chef::Mixin:Shellout instead since Chef::Shellout is deprecated in Chef 11.

require 'chef/mixin/shell_out'
include Chef::Mixin::ShellOut

like in the python cookbook.