code: def _get_pkgng_version(jail=None, chroot=None, root=None):
      '''
      return the version of 'pkg'
      '''
      cmd = _pkg(jail, chroot, root) + ['--version']
      return __salt__['cmd.run'](cmd).strip(f _get_pkgng_version(jail=None, chroot=None, root=None):
      '''
      return the version of 'pkg'
      '''
      cmd = _pkg(jail, chroot, root) + ['--version']
      return __salt__['cmd.run'](cmd).strip()
docs: return the version of 'pkg'