code: def _check_apt_get():
      
      check = False
      if 'TESTING' not in os.environ:
          result = exec_command(['dpkg', '-l', 'apio'])
          if result and result.get('returncode') == 0:
              match = re.findall('rc\s+apio', result.get('out')) + \
                      re.findall('ii\s+apio', result.get('out'))
              check = len(match) > 0
      return check
docs: Check if apio can be installed through apt-get