code: def count_alleles_subpops(self, subpops, max_allele=None):
          
  
          if max_allele is None:
              max_allele = self.max()
  
          out = {name: self.count_alleles(max_allele=max_allele, subpop=subpop)
                 for name, subpop in subpops.items()}
  
          return out
docs: Count alleles for multiple subpopulations simultaneously.
  
          Parameters
          ----------
          subpops : dict (string -> sequence of ints)
              Mapping of subpopulation names to sample indices.
          max_allele : int, optional
              The highest allele index to count. Alleles above this will be
              ignored.
  
          Returns
          -------
          out : dict (string -> AlleleCountsArray)
              A mapping of subpopulation names to allele counts arrays.