code: def largest_tile_size_available(width: int, height: int) -> int:
      """
      Calculates the largest tile size available for a given width and height
      Tile size is always a power of 2
      """
      gcd = math.gcd(width, height)
      largest_tile_size_available = 1
      while gcd % (largest_tile_size_available * 2) == 0:
          largest_tile_size_available *= 2
      return largest_tile_size_available
  
file_path: stable-diffusion-webui/extensions-builtin/hypertile/hypertile.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import Callable
  from functools import wraps, cache
  import math
  import torch.nn
  import random
  from einops import rearrange
label_desc: Use image node_id 4 for calling a global function with example usage: largest_tile_size_available(width, height) and returns: largest_tile_size_available