code: public static LocalCall<Map<String, List<Xor<String, Info>>>> listPkgs(
              List<String> attributes) {
          LinkedHashMap<String, Object> args = new LinkedHashMap<>();
          args.put("attr", attributes);
          return new LocalCall<>("pkg.list_pkgs", Optional.empty(), Optional.of(args),
                  new TypeToken<Map<String, List<Xor<String, Info>>>>(){});
      }
docs: Call 'pkg.list_pkgs'
  @param attributes list of attributes that should be included in the result
  @return the call. For each package, the map can contain a String (only the version)
  or an Info object containing specified attributes depending on Salt version and
  minion support