class_docstr: Class that generates one or more sprite atlases.
class_docstr_tok: ["Class","that","generates","one","or","more","sprite","atlases","."]
docstr: Returns tuple of (list of sprite atlas images, list of manifests).
  
  If atlas size is not specified, it creates a single square
  atlas. Otherwise, it creates how ever many atlases are required
  to contain the images at the specific atlas size.
  
  Atlases are populated with images from left to right, top to bottom.
  
  Returns:
    List of Sprite Atlases.
docstr_tok: ["Returns","tuple","of","(","list","of","sprite","atlas","images",",","list","of","manifests",")",".","If","atlas","size","is","not","specified",",","it","creates","a","single","square","atlas",".","Otherwise",",","it","creates","how","ever","many","atlases","are","required","to","contain","the","images","at","the","specific","atlas","size",".","Atlases","are","populated","with","images","from","left","to","right",",","top","to","bottom",".","Returns",":","List","of","Sprite","Atlases","."]
code: def create_atlas(self):
      """Returns tuple of (list of sprite atlas images, list of manifests).
  
      If atlas size is not specified, it creates a single square
      atlas. Otherwise, it creates how ever many atlases are required
      to contain the images at the specific atlas size.
  
      Atlases are populated with images from left to right, top to bottom.
  
      Returns:
        List of Sprite Atlases.
      """
      # If no atlas size specified or if a single atlas can fit all images,
      # create a single atlas.
      atlas_size_is_specified = (
          self._atlas_settings.height is not None
          and self._atlas_settings.width is not None
      )
  
      if not atlas_size_is_specified:
          spriteatlas1, manifest1 = self._create_single_atlas()
          return ([spriteatlas1], [manifest1])
      else:
          # TODO: Support creating multiple sprite atlases.
          raise NotImplementedError()
  
imports: import math
  import os
  from absl import logging
  from PIL import Image
label_desc: Use image node_id 4 for calling the SpriteAtlasGenerator obj's underlying member method code with example usage: obj.create_atlas() and returns: list,  list