code: def package_ensure_apt(*packages):
      
      package = " ".join(packages)
      status = run("dpkg-query -W -f='${{Status}} ' {p}; true".format(p=package))
      status = status.lower()
      if 'no packages found' in status or 'not-installed' in status:
          sudo("apt-get --yes install " + package)
          return False
      else:
          return True
docs: Ensure apt packages are installed