code: def shell(cmd, check=True, stdin=None, stdout=None, stderr=None):
      
      return subprocess.run(cmd, shell=True, check=check, stdin=stdin, stdout=stdout, stderr=stderr)
docs: Runs a subprocess shell with check=True by default