code: def calculate_tiles_needed(
      resized_width, resized_height, tile_width=512, tile_height=512
  ):
      tiles_across = (resized_width + tile_width - 1) // tile_width
      tiles_down = (resized_height + tile_height - 1) // tile_height
      total_tiles = tiles_across * tiles_down
      return total_tiles
  
imports: from typing import Literal
label_desc: Use image node_id 3 for calling a global function with example usage: calculate_tiles_needed(resized_width, resized_height, tile_width, tile_height) and returns: total_tiles