class_docstr: Class that generates one or more sprite atlases.
class_docstr_tok: ["Class","that","generates","one","or","more","sprite","atlases","."]
docstr: Initialize Atlas generator.
  
  Args:
    images_with_statuses: List of tuples, where each tuple contains
                        (converted Image object or None, status/error message
                        string). These will be montaged into the Atlas.
    img_src_paths: List of image source paths (strings).
    settings: SpritesheetSettings instance.
    default_img: PIL Image object representing the default image to be used
                 when a desired image failed retrieval/conversion.
docstr_tok: ["Initialize","Atlas","generator",".","Args",":","images_with_statuses",":","List","of","tuples",",","where","each","tuple","contains","(","converted","Image","object","or","None",",","status\/error","message","string",")",".","These","will","be","montaged","into","the","Atlas",".","img_src_paths",":","List","of","image","source","paths","(","strings",")",".","settings",":","SpritesheetSettings","instance",".","default_img",":","PIL","Image","object","representing","the","default","image","to","be","used","when","a","desired","image","failed","retrieval\/conversion","."]
code: def __init__(
      self,
      images_with_statuses,
      img_src_paths,
      atlas_settings,
      default_img,
  ):
      """Initialize Atlas generator.
  
      Args:
        images_with_statuses: List of tuples, where each tuple contains
                            (converted Image object or None, status/error message
                            string). These will be montaged into the Atlas.
        img_src_paths: List of image source paths (strings).
        settings: SpritesheetSettings instance.
        default_img: PIL Image object representing the default image to be used
                     when a desired image failed retrieval/conversion.
      """
      self._images_with_statuses = images_with_statuses
      self._img_src_paths = img_src_paths
      self._atlas_settings = atlas_settings
      self._default_image = default_img
  
      self._atlas_manifests = []  # List of atlas manifests.
  
      # Store tuple representing individual image (width, height) in pixels.
      self._img_width_height_px = self._identify_image_size()
      self._num_input_images = len(self._images_with_statuses)
  
      self._validate_inputs()
  
imports: import math
  import os
  from absl import logging
  from PIL import Image
label_desc: Use image node_id 1 to create a new SpriteAtlasGenerator object from inherited base classes: object with example: obj = SpriteAtlasGenerator(images_with_statuses, img_src_paths, atlas_settings, default_img)