code: def get_installed_use(cp, use="USE"):
      '''
      .. versionadded:: 2015.8.0
  
      Gets the installed USE flags from the VARDB.
  
      @type: cp: string
      @param cp: cat/pkg
      @type use: string
      @param use: 1 of ["USE", "PKGUSE"]
      @rtype list
      @returns [] or the list of IUSE flags
      '''
      portage = _get_portage()
      cpv = _get_cpv(cp)
      return portage.db[portage.root]["vartree"].dbapi.aux_get(cpv, [use])[0].split(f get_installed_use(cp, use="USE"):
      '''
      .. versionadded:: 2015.8.0
  
      Gets the installed USE flags from the VARDB.
  
      @type: cp: string
      @param cp: cat/pkg
      @type use: string
      @param use: 1 of ["USE", "PKGUSE"]
      @rtype list
      @returns [] or the list of IUSE flags
      '''
      portage = _get_portage()
      cpv = _get_cpv(cp)
      return portage.db[portage.root]["vartree"].dbapi.aux_get(cpv, [use])[0].split()
docs: .. versionadded:: 2015.8.0
  
      Gets the installed USE flags from the VARDB.
  
      @type: cp: string
      @param cp: cat/pkg
      @type use: string
      @param use: 1 of ["USE", "PKGUSE"]
      @rtype list
      @returns [] or the list of IUSE flags