original_docstring: Creates an empty image and initializes CustomImageDraw.
docstring: Creates an empty image and initializes CustomImageDraw.
docstring_tokens: Creates an empty image and initializes CustomImageDraw .
code: def _create_empty_image(self, _mode: str = 'RGB') -> None:
          """Creates an empty image and initializes CustomImageDraw."""
          if self.img:
              self.img.close()
  
          self.img = Image.new(_mode, (self.width, self.height),
                               color=self.theme.figure_background_color)
          self.draw = CustomImageDraw(self.img)
code_tokens: def _create_empty_image ( self , _mode : str = 'RGB' ) -> None : if self . img : self . img . close ( ) self . img = Image . new ( _mode , ( self . width , self . height ) , color = self . theme . figure_background_color ) self . draw = CustomImageDraw ( self . img )
short_docstring: Creates an empty image and initializes CustomImageDraw.
short_docstring_tokens: Creates an empty image and initializes CustomImageDraw .
comment: """Creates an empty image and initializes CustomImageDraw."""