code: def down_size(N: int, size: torch.Size) -> Tuple[int, int]:
      assert size[-1] % N == 0, f"{size} last dim not divisible by {N}"
      return (*size[:-1], size[-1] // N)
  
imports: import itertools
  from typing import List, Tuple
  import torch
  import torch._prims_common
label_desc: Use image node_id 1 for calling a global function with example usage: down_size(N, size) and returns: unknown,  unknown